summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/actormanager.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/actormanager.cpp b/src/actormanager.cpp
index 7755edbc3..0f3734997 100644
--- a/src/actormanager.cpp
+++ b/src/actormanager.cpp
@@ -255,8 +255,7 @@ void ActorManager::setPlayer(LocalPlayer *const player)
{
localPlayer = player;
mActors.insert(player);
- if (player)
- mActorsIdMap[player->getId()] = player;
+ mActorsIdMap[player->getId()] = player;
if (socialWindow)
socialWindow->updateAttackFilter();
if (socialWindow)