mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-19 08:55:32 +01:00
MovementGenerators/WaypointMovementGenerator: send waypoint id instead of current node to MovementInform
updates #18401
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user