summaryrefslogtreecommitdiff
path: root/src/being/actorsprite.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-03-24 13:12:38 +0300
committerAndrei Karas <akaras@inbox.ru>2015-03-24 13:12:38 +0300
commit25706e4ab74f3ec3fbacde3dac25f421f5ada279 (patch)
treee795526460ea3e4a0c393cbf2c62d60daefba541 /src/being/actorsprite.cpp
parente922fce0975c235762979e406754bb00b32fa85c (diff)
downloadManaVerse-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.cpp2
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.