summaryrefslogtreecommitdiff
path: root/src/actormanager.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/actormanager.cpp')
-rw-r--r--src/actormanager.cpp3
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();