summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorshennetsind <ind@henn.et>2013-01-31 15:51:50 -0200
committershennetsind <ind@henn.et>2013-01-31 15:51:50 -0200
commitfc2e159d8c3d45ddeae4ce1dcc84312303442745 (patch)
treeb51f000cdb1c86a5632a11187661eec057835a41
parent13317f0e0db8cce32da951c25707840d6357d079 (diff)
downloadhercules-fc2e159d8c3d45ddeae4ce1dcc84312303442745.tar.gz
hercules-fc2e159d8c3d45ddeae4ce1dcc84312303442745.tar.bz2
hercules-fc2e159d8c3d45ddeae4ce1dcc84312303442745.tar.xz
hercules-fc2e159d8c3d45ddeae4ce1dcc84312303442745.zip
Fixed Bug #6918
@follow will not stop immeadily when turned off, instead of waiting for the current walk path to be complete. http://hercules.ws/board/tracker/issue-6918-follow-not-releasing-hold/ Signed-off-by: shennetsind <ind@henn.et>
-rw-r--r--src/map/pc.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/map/pc.c b/src/map/pc.c
index 89925f8f2..abfbbcc12 100644
--- a/src/map/pc.c
+++ b/src/map/pc.c
@@ -5518,6 +5518,8 @@ int pc_stop_following (struct map_session_data *sd)
sd->followtarget = -1;
sd->ud.target_to = 0;
+ unit_stop_walking(&sd->bl, 1);
+
return 0;
}