summaryrefslogtreecommitdiff
path: root/src/actormanager.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2016-02-18 02:57:47 +0300
committerAndrei Karas <akaras@inbox.ru>2016-02-18 02:57:47 +0300
commit02cc3470578d1c950cbd7731f86e24167d04a9df (patch)
tree582d04e193ef5001dd10dbe53c61e92987e90d38 /src/actormanager.cpp
parentb3ee753a9386bc0c9e15eeea865c8f253a3bd6ee (diff)
downloadmv-02cc3470578d1c950cbd7731f86e24167d04a9df.tar.gz
mv-02cc3470578d1c950cbd7731f86e24167d04a9df.tar.bz2
mv-02cc3470578d1c950cbd7731f86e24167d04a9df.tar.xz
mv-02cc3470578d1c950cbd7731f86e24167d04a9df.zip
Remove useless check.
Diffstat (limited to 'src/actormanager.cpp')
-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)