summaryrefslogtreecommitdiff
path: root/src/net/eathena/guildrecv.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2019-03-05 04:32:12 +0300
committerAndrei Karas <akaras@inbox.ru>2019-03-05 04:32:12 +0300
commit9253bd60eedaa7c027e35fcde7c0c14d00bfb0d7 (patch)
tree4397c5b7da9ed6294778fd7432996dd70eaff339 /src/net/eathena/guildrecv.cpp
parentf28382b61b02a2d13c7d3f5b63c9e699fc549d22 (diff)
downloadmv-9253bd60eedaa7c027e35fcde7c0c14d00bfb0d7.tar.gz
mv-9253bd60eedaa7c027e35fcde7c0c14d00bfb0d7.tar.bz2
mv-9253bd60eedaa7c027e35fcde7c0c14d00bfb0d7.tar.xz
mv-9253bd60eedaa7c027e35fcde7c0c14d00bfb0d7.zip
Fix code style
Diffstat (limited to 'src/net/eathena/guildrecv.cpp')
-rw-r--r--src/net/eathena/guildrecv.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/net/eathena/guildrecv.cpp b/src/net/eathena/guildrecv.cpp
index 62577e7b8..4bfea0cf9 100644
--- a/src/net/eathena/guildrecv.cpp
+++ b/src/net/eathena/guildrecv.cpp
@@ -202,6 +202,9 @@ void GuildRecv::processGuildAlianceInfo(Net::MessageIn &msg)
void GuildRecv::processGuildMemberList(Net::MessageIn &msg)
{
+ if (actorManager == nullptr)
+ return;
+
const int length = msg.readInt16("len");
if (length < 4)
return;
@@ -285,11 +288,8 @@ void GuildRecv::processGuildMemberList(Net::MessageIn &msg)
}
}
taGuild->sort();
- if (actorManager != nullptr)
- {
- actorManager->updatePlayerGuild();
- actorManager->updatePlayerColors();
- }
+ actorManager->updatePlayerGuild();
+ actorManager->updatePlayerColors();
if (socialWindow != nullptr)
socialWindow->updateGuildCounter(onlineNum, totalNum);
}