summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2019-03-16 23:22:37 +0300
committerAndrei Karas <akaras@inbox.ru>2019-03-16 23:22:37 +0300
commit2727755de87b17e66a2ea02a379f11f72cb3fd97 (patch)
treead5621a2e8084f0fbdd1c1292277df670aef9296
parent18df574808083a6c14fdfb2de02e8d493d41a4d6 (diff)
downloadplus-2727755de87b17e66a2ea02a379f11f72cb3fd97.tar.gz
plus-2727755de87b17e66a2ea02a379f11f72cb3fd97.tar.bz2
plus-2727755de87b17e66a2ea02a379f11f72cb3fd97.tar.xz
plus-2727755de87b17e66a2ea02a379f11f72cb3fd97.zip
Remove extra check from guildrecv.cpp
-rw-r--r--src/net/eathena/guildrecv.cpp17
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)