summaryrefslogtreecommitdiff
path: root/src/gui/guildwindow.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/guildwindow.cpp')
-rw-r--r--src/gui/guildwindow.cpp4
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)