summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStefan Dombrowski <stefan@uni-bonn.de>2011-03-31 02:37:03 +0200
committerStefan Dombrowski <stefan@uni-bonn.de>2011-03-31 02:37:03 +0200
commitb8c8c307b5de2881fb3a2fa4f0cb8848bc5df23c (patch)
treed5de57e608075e5fbfdde470837469746cb314cc
parent127b41236e296eb7a6155f5a89adf4aa86a3e6a8 (diff)
downloadmanaserv-b8c8c307b5de2881fb3a2fa4f0cb8848bc5df23c.tar.gz
manaserv-b8c8c307b5de2881fb3a2fa4f0cb8848bc5df23c.tar.xz
manaserv-b8c8c307b5de2881fb3a2fa4f0cb8848bc5df23c.zip
Fixing account server crash when leaving guild
This resolves http://bugs.manasource.org/view.php?id=323
-rw-r--r--src/chat-server/guildmanager.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/chat-server/guildmanager.cpp b/src/chat-server/guildmanager.cpp
index 71d9ee3..1aa2425 100644
--- a/src/chat-server/guildmanager.cpp
+++ b/src/chat-server/guildmanager.cpp
@@ -95,8 +95,10 @@ void GuildManager::removeGuildMember(Guild *guild, int playerId)
while (itr != itr_end)
{
if ((*itr) == playerId)
+ {
mOwners.remove(playerId);
-
+ break;
+ }
++itr;
}
}