From 9253bd60eedaa7c027e35fcde7c0c14d00bfb0d7 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Tue, 5 Mar 2019 04:32:12 +0300 Subject: Fix code style --- src/net/eathena/guildrecv.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/net/eathena/guildrecv.cpp') 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); } -- cgit v1.2.3-60-g2f50