diff options
author | Andrei Karas <akaras@inbox.ru> | 2019-03-05 04:32:12 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2019-03-05 04:32:12 +0300 |
commit | 9253bd60eedaa7c027e35fcde7c0c14d00bfb0d7 (patch) | |
tree | 4397c5b7da9ed6294778fd7432996dd70eaff339 /src/net/eathena/guildrecv.cpp | |
parent | f28382b61b02a2d13c7d3f5b63c9e699fc549d22 (diff) | |
download | mv-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.cpp | 10 |
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); } |