*Reset currentNode in waypoint generator initialize. By trullyone.

--HG--
branch : trunk
This commit is contained in:
megamage
2008-12-28 10:01:05 -06:00
parent f650b55c23
commit e7c220d843
+2
View File
@@ -94,6 +94,8 @@ template<>
void
WaypointMovementGenerator<Creature>::Initialize(Creature &u)
{
i_currentNode = 0;
StopedByPlayer = false;
u.StopMoving();
if(!path_id)
path_id = u.GetWaypointPath();