Revert "MovementGenerators/WaypointMovementGenerator: send waypoint id instead of current node to MovementInform"

This reverts commit cb634e6fba.
This commit is contained in:
Shauren
2017-01-06 23:32:20 +01:00
parent cb634e6fba
commit 75fe9ebd7a

View File

@@ -305,7 +305,7 @@ bool WaypointMovementGenerator<Creature>::DoUpdate(Creature* creature, uint32 di
void WaypointMovementGenerator<Creature>::MovementInform(Creature* creature)
{
if (creature->AI())
creature->AI()->MovementInform(WAYPOINT_MOTION_TYPE, i_path->at(i_currentNode).id);
creature->AI()->MovementInform(WAYPOINT_MOTION_TYPE, i_currentNode);
}
bool WaypointMovementGenerator<Creature>::GetResetPos(Creature*, float& x, float& y, float& z)