diff options
author | Andrei Karas <akaras@inbox.ru> | 2011-09-05 02:14:07 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2011-09-05 02:14:07 +0300 |
commit | 62da739fc73e269959bbbe8a6b741f50c5e82238 (patch) | |
tree | 96cf994d2541e14d7b75f4ece608196f5ce00e3a | |
parent | fd484fc70fca32ff9065b91c175089b65aa3fd26 (diff) | |
download | plus-62da739fc73e269959bbbe8a6b741f50c5e82238.tar.gz plus-62da739fc73e269959bbbe8a6b741f50c5e82238.tar.bz2 plus-62da739fc73e269959bbbe8a6b741f50c5e82238.tar.xz plus-62da739fc73e269959bbbe8a6b741f50c5e82238.zip |
Fix guild tab removing after receive some packets.v1.1.9.4fix
-rw-r--r-- | src/net/tmwa/beinghandler.cpp | 16 |
1 files changed, 12 insertions, 4 deletions
diff --git a/src/net/tmwa/beinghandler.cpp b/src/net/tmwa/beinghandler.cpp index ce2db733f..c087ab43d 100644 --- a/src/net/tmwa/beinghandler.cpp +++ b/src/net/tmwa/beinghandler.cpp @@ -27,6 +27,7 @@ #include "client.h" #include "effectmanager.h" #include "guild.h" +#include "guildmanager.h" #include "keyboardconfig.h" #include "localplayer.h" #include "logger.h" @@ -505,10 +506,17 @@ void BeingHandler::processPlayerMoveUpdate(Net::MessageIn &msg, int msgType) guild = msg.readInt32(); // guild - if (guild == 0) - dstBeing->clearGuilds(); - else - dstBeing->setGuild(Guild::getGuild(static_cast<short>(guild))); + if (!guildManager || !GuildManager::getEnableGuildBot()) + { + if (guild == 0) + { + dstBeing->clearGuilds(); + } + else + { + dstBeing->setGuild(Guild::getGuild(static_cast<short>(guild))); + } + } msg.readInt16(); // emblem msg.readInt16(); // manner |