summaryrefslogtreecommitdiff
path: root/src/net/eathena
diff options
context:
space:
mode:
Diffstat (limited to 'src/net/eathena')
-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)