diff options
author | Andrei Karas <akaras@inbox.ru> | 2019-03-16 23:22:37 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2019-03-16 23:22:37 +0300 |
commit | 2727755de87b17e66a2ea02a379f11f72cb3fd97 (patch) | |
tree | ad5621a2e8084f0fbdd1c1292277df670aef9296 /src | |
parent | 18df574808083a6c14fdfb2de02e8d493d41a4d6 (diff) | |
download | plus-2727755de87b17e66a2ea02a379f11f72cb3fd97.tar.gz plus-2727755de87b17e66a2ea02a379f11f72cb3fd97.tar.bz2 plus-2727755de87b17e66a2ea02a379f11f72cb3fd97.tar.xz plus-2727755de87b17e66a2ea02a379f11f72cb3fd97.zip |
Remove extra check from guildrecv.cpp
Diffstat (limited to 'src')
-rw-r--r-- | src/net/eathena/guildrecv.cpp | 17 |
1 files changed, 7 insertions, 10 deletions
diff --git a/src/net/eathena/guildrecv.cpp b/src/net/eathena/guildrecv.cpp index 4bfea0cf9..e6c7f20c9 100644 --- a/src/net/eathena/guildrecv.cpp +++ b/src/net/eathena/guildrecv.cpp @@ -268,18 +268,15 @@ void GuildRecv::processGuildMemberList(Net::MessageIn &msg) m->setExp(exp); m->setPos(pos); m->setRace(race); - if (actorManager != nullptr) + Being *const being = actorManager->findBeingByName( + name, ActorType::Player); + if (being != nullptr) { - Being *const being = actorManager->findBeingByName( - name, ActorType::Player); - if (being != nullptr) + being->setGuildName(taGuild->getName()); + if (being->getLevel() != level) { - being->setGuildName(taGuild->getName()); - if (being->getLevel() != level) - { - being->setLevel(level); - being->updateName(); - } + being->setLevel(level); + being->updateName(); } } if (online != 0) |