diff options
author | Andrei Karas <akaras@inbox.ru> | 2016-02-18 02:57:47 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2016-02-18 02:57:47 +0300 |
commit | 02cc3470578d1c950cbd7731f86e24167d04a9df (patch) | |
tree | 582d04e193ef5001dd10dbe53c61e92987e90d38 /src/actormanager.cpp | |
parent | b3ee753a9386bc0c9e15eeea865c8f253a3bd6ee (diff) | |
download | manaverse-02cc3470578d1c950cbd7731f86e24167d04a9df.tar.gz manaverse-02cc3470578d1c950cbd7731f86e24167d04a9df.tar.bz2 manaverse-02cc3470578d1c950cbd7731f86e24167d04a9df.tar.xz manaverse-02cc3470578d1c950cbd7731f86e24167d04a9df.zip |
Remove useless check.
Diffstat (limited to 'src/actormanager.cpp')
-rw-r--r-- | src/actormanager.cpp | 3 |
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) |