diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/actormanager.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/actormanager.cpp b/src/actormanager.cpp index c7926bb8d..732b342b2 100644 --- a/src/actormanager.cpp +++ b/src/actormanager.cpp @@ -2286,7 +2286,8 @@ void ActorManager::addChar(const int32_t id, if (guild != nullptr) { GuildMember *const member = guild->getMemberByCharId(id); - member->setName(name); + if (member != nullptr) + member->setName(name); } } guiInput->simulateMouseMove(); |