From a10b7cb955ab974c42474726f66e8e16f659bdb6 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Mon, 4 Mar 2019 23:01:55 +0300 Subject: Fix player names in guild in new packets. --- src/actormanager.cpp | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'src/actormanager.cpp') 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(); } -- cgit v1.2.3-70-g09d2