summaryrefslogtreecommitdiff
path: root/src/net/guildhandler.cpp
diff options
context:
space:
mode:
authorDavid Athay <ko2fan@gmail.com>2008-04-01 17:13:32 +0000
committerDavid Athay <ko2fan@gmail.com>2008-04-01 17:13:32 +0000
commitfabc9567b86e5e6a9b7b463f47869fc13e7ae33b (patch)
treeae16d0ff935b55532ccb4b33ef5ec038475d4f30 /src/net/guildhandler.cpp
parentc95ad0a99169868a2c3169999f0498b8de391a12 (diff)
downloadmana-client-fabc9567b86e5e6a9b7b463f47869fc13e7ae33b.tar.gz
mana-client-fabc9567b86e5e6a9b7b463f47869fc13e7ae33b.tar.bz2
mana-client-fabc9567b86e5e6a9b7b463f47869fc13e7ae33b.tar.xz
mana-client-fabc9567b86e5e6a9b7b463f47869fc13e7ae33b.zip
Fixed up chat and guilds
Diffstat (limited to 'src/net/guildhandler.cpp')
-rw-r--r--src/net/guildhandler.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/net/guildhandler.cpp b/src/net/guildhandler.cpp
index 0b36f8e4..70529121 100644
--- a/src/net/guildhandler.cpp
+++ b/src/net/guildhandler.cpp
@@ -140,7 +140,11 @@ void GuildHandler::handleMessage(MessageIn &msg)
if (msg.readInt8() == ERRMSG_OK)
{
- guildWindow->removeTab();
+ // Must remove tab first, as it wont find the guild
+ // name after its removed from the player
+ int guildId = msg.readInt16();
+ guildWindow->removeTab(guildId);
+ player_node->removeGuild(guildId);
}
} break;
}