diff options
author | Andrei Karas <akaras@inbox.ru> | 2015-03-24 13:12:38 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2015-03-24 13:12:38 +0300 |
commit | 25706e4ab74f3ec3fbacde3dac25f421f5ada279 (patch) | |
tree | e795526460ea3e4a0c393cbf2c62d60daefba541 /src/being/actorsprite.cpp | |
parent | e922fce0975c235762979e406754bb00b32fa85c (diff) | |
download | manaverse-25706e4ab74f3ec3fbacde3dac25f421f5ada279.tar.gz manaverse-25706e4ab74f3ec3fbacde3dac25f421f5ada279.tar.bz2 manaverse-25706e4ab74f3ec3fbacde3dac25f421f5ada279.tar.xz manaverse-25706e4ab74f3ec3fbacde3dac25f421f5ada279.zip |
Fix possible issue on exit.
Diffstat (limited to 'src/being/actorsprite.cpp')
-rw-r--r-- | src/being/actorsprite.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/being/actorsprite.cpp b/src/being/actorsprite.cpp index 31e8ce7be..9055e3a40 100644 --- a/src/being/actorsprite.cpp +++ b/src/being/actorsprite.cpp @@ -83,7 +83,7 @@ ActorSprite::~ActorSprite() mUsedTargetCursor = nullptr; - if (localPlayer && localPlayer->getTarget() == this) + if (localPlayer && localPlayer != this && localPlayer->getTarget() == this) localPlayer->setTarget(nullptr); // Notify listeners of the destruction. |