diff options
author | David Athay <ko2fan@gmail.com> | 2008-03-05 18:44:03 +0000 |
---|---|---|
committer | David Athay <ko2fan@gmail.com> | 2008-03-05 18:44:03 +0000 |
commit | 431a0b17e7eee6b27f98b74f4d073f2131a089dd (patch) | |
tree | 446344a335696f12d1eec05a731b094c2d44d991 /src/gui/guildwindow.cpp | |
parent | 8d2f8756b0e85f14b5d80ec63dc5e5a7f5f5de3d (diff) | |
download | Mana-431a0b17e7eee6b27f98b74f4d073f2131a089dd.tar.gz Mana-431a0b17e7eee6b27f98b74f4d073f2131a089dd.tar.bz2 Mana-431a0b17e7eee6b27f98b74f4d073f2131a089dd.tar.xz Mana-431a0b17e7eee6b27f98b74f4d073f2131a089dd.zip |
Fixed guild creation.
Diffstat (limited to 'src/gui/guildwindow.cpp')
-rw-r--r-- | src/gui/guildwindow.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gui/guildwindow.cpp b/src/gui/guildwindow.cpp index c7a828b9..30305ca4 100644 --- a/src/gui/guildwindow.cpp +++ b/src/gui/guildwindow.cpp @@ -153,7 +153,7 @@ void GuildWindow::newGuildTab(const std::string &guildName) tab->setHeight(getHeight() - 2 * tab->getBorderSize()); tab->setOpaque(false); ListBox *list = new ListBox(); - list->setListModel(player_node->findGuildByName(guildName)); + list->setListModel(player_node->getGuild(guildName)); ScrollArea *sa = new ScrollArea(list); sa->setDimension(gcn::Rectangle(5, 5, 135, 250)); tab->add(sa); @@ -192,7 +192,7 @@ bool GuildWindow::isFocused() short GuildWindow::getSelectedGuild() { - return mPlayer->findGuildByName(mGuildsContainer->getActiveWidget())->getId(); + return mPlayer->getGuild(mGuildsContainer->getActiveWidget())->getId(); } void GuildWindow::openAcceptDialog(const std::string &inviterName, const std::string &guildName) |