summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2016-08-19 19:41:28 +0300
committerAndrei Karas <akaras@inbox.ru>2016-08-19 19:41:28 +0300
commitb5398a7046123e8cc13ebe7da8fb7ccc80885c7d (patch)
tree212247fe57b34347bfb62bb68f4a2c3f4db1b3a3
parent23c48689e73acc52dfd2b6e0e62105ddbd3fd30e (diff)
downloadmanaplus-b5398a7046123e8cc13ebe7da8fb7ccc80885c7d.tar.gz
manaplus-b5398a7046123e8cc13ebe7da8fb7ccc80885c7d.tar.bz2
manaplus-b5398a7046123e8cc13ebe7da8fb7ccc80885c7d.tar.xz
manaplus-b5398a7046123e8cc13ebe7da8fb7ccc80885c7d.zip
Fix removing local player from guild.
-rw-r--r--src/net/ea/guildrecv.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/net/ea/guildrecv.cpp b/src/net/ea/guildrecv.cpp
index cb8b9394d..c6eac245d 100644
--- a/src/net/ea/guildrecv.cpp
+++ b/src/net/ea/guildrecv.cpp
@@ -406,6 +406,7 @@ void GuildRecv::processGuildLeave(Net::MessageIn &msg)
{
taGuild->removeFromMembers();
taGuild->clearMembers();
+ localPlayer->removeGuild(taGuild->getId());
}
NotifyManager::notify(NotifyTypes::GUILD_LEFT);
delete2(guildTab)