mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-24 10:56:38 +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)
|
void WaypointMovementGenerator<Creature>::MovementInform(Creature* creature)
|
||||||
{
|
{
|
||||||
if (creature->AI())
|
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)
|
bool WaypointMovementGenerator<Creature>::GetResetPos(Creature*, float& x, float& y, float& z)
|
||||||
|
|||||||
Reference in New Issue
Block a user