Skip to content
Snippets Groups Projects
Commit 62da739f authored by Andrei Karas's avatar Andrei Karas
Browse files

Fix guild tab removing after receive some packets.

parent fd484fc7
No related branches found
Tags v1.1.9.4fix
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment