aboutsummaryrefslogtreecommitdiff
path: root/src/game/WaypointMovementGenerator.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/game/WaypointMovementGenerator.cpp')
-rw-r--r--src/game/WaypointMovementGenerator.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/game/WaypointMovementGenerator.cpp b/src/game/WaypointMovementGenerator.cpp
index 56f244dd831..42212113f61 100644
--- a/src/game/WaypointMovementGenerator.cpp
+++ b/src/game/WaypointMovementGenerator.cpp
@@ -43,7 +43,6 @@ void
WaypointMovementGenerator<Creature>::Initialize(Creature &u)
{
i_currentNode = -1;
- u.StopMoving();
if(!path_id)
path_id = u.GetWaypointPath();
waypoints = WaypointMgr.GetPath(path_id);
@@ -84,7 +83,11 @@ bool WaypointMovementGenerator<Player>::GetDestination(float &x, float &y, float
}
template<>
-void WaypointMovementGenerator<Creature>::Reset(Creature &unit){}
+void WaypointMovementGenerator<Creature>::Reset(Creature &unit)
+{
+ StopedByPlayer = false;
+ i_nextMoveTime.Reset(0);
+}
template<>
void WaypointMovementGenerator<Player>::Reset(Player &unit){}