summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/localplayer.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/localplayer.cpp b/src/localplayer.cpp
index 5f392a52..4e72169f 100644
--- a/src/localplayer.cpp
+++ b/src/localplayer.cpp
@@ -184,6 +184,11 @@ void LocalPlayer::pickUp(FloorItem *item)
void LocalPlayer::walk(unsigned char dir)
{
+
+ // If they have someone or something targeted, cancel it
+ if (mTarget)
+ setTarget(NULL);
+
if (!mMap || !dir)
return;