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

updates #18401
This commit is contained in:
ccrs
2017-01-06 23:17:16 +01:00
parent f7f865f818
commit cb634e6fba

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_currentNode);
creature->AI()->MovementInform(WAYPOINT_MOTION_TYPE, i_path->at(i_currentNode).id);
}
bool WaypointMovementGenerator<Creature>::GetResetPos(Creature*, float& x, float& y, float& z)