summaryrefslogtreecommitdiff
path: root/src/actormanager.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2019-03-04 23:01:55 +0300
committerAndrei Karas <akaras@inbox.ru>2019-03-04 23:01:55 +0300
commita10b7cb955ab974c42474726f66e8e16f659bdb6 (patch)
treebd08cffb667c91cf1ab4c4ccdc6c4c23c93fe71c /src/actormanager.cpp
parent56f4420c4f5689cb84a119193fda57dab51c8428 (diff)
downloadmanaverse-a10b7cb955ab974c42474726f66e8e16f659bdb6.tar.gz
manaverse-a10b7cb955ab974c42474726f66e8e16f659bdb6.tar.bz2
manaverse-a10b7cb955ab974c42474726f66e8e16f659bdb6.tar.xz
manaverse-a10b7cb955ab974c42474726f66e8e16f659bdb6.zip
Fix player names in guild in new packets.
Diffstat (limited to 'src/actormanager.cpp')
-rw-r--r--src/actormanager.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/actormanager.cpp b/src/actormanager.cpp
index c550fc75c..0e627fb2f 100644
--- a/src/actormanager.cpp
+++ b/src/actormanager.cpp
@@ -23,6 +23,7 @@
#include "actormanager.h"
#include "game.h"
+#include "guild.h"
#include "configuration.h"
#include "settings.h"
@@ -2281,5 +2282,14 @@ void ActorManager::addChar(const int32_t id,
if (guiInput == nullptr)
return;
+ if (localPlayer != nullptr)
+ {
+ Guild *const guild = localPlayer->getGuild();
+ if (guild != nullptr)
+ {
+ GuildMember *const member = guild->getMemberByCharId(id);
+ member->setName(name);
+ }
+ }
guiInput->simulateMouseMove();
}