summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2016-03-12 23:28:27 +0300
committerAndrei Karas <akaras@inbox.ru>2016-03-12 23:28:27 +0300
commit767e9a19a27ecf4b7f5ea88e958c818fc56db9fd (patch)
treee82419f527c024fca37b9fa1f185b4607d893db0
parentcb462bb18da734c7d1e4023f6b5ba38e38678f6b (diff)
downloadmanaplus-767e9a19a27ecf4b7f5ea88e958c818fc56db9fd.tar.gz
manaplus-767e9a19a27ecf4b7f5ea88e958c818fc56db9fd.tar.bz2
manaplus-767e9a19a27ecf4b7f5ea88e958c818fc56db9fd.tar.xz
manaplus-767e9a19a27ecf4b7f5ea88e958c818fc56db9fd.zip
Fix wrong moving to target if was used attack by mouse.
-rw-r--r--src/being/localplayer.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/being/localplayer.cpp b/src/being/localplayer.cpp
index 9cf739d74..e2450610c 100644
--- a/src/being/localplayer.cpp
+++ b/src/being/localplayer.cpp
@@ -990,7 +990,7 @@ void LocalPlayer::setGotoTarget(Being *const target)
mPickUpTarget = nullptr;
setTarget(target);
mGoingToTarget = true;
- setDestination(target->mX,
+ navigateTo(target->mX,
target->mY);
}