feat(Core/Pathing): Add path_id to PathEndReached (#10021)
This commit is contained in:
parent
e28bdf9bde
commit
911e8b4d12
2 changed files with 2 additions and 2 deletions
|
|
@ -133,7 +133,7 @@ public:
|
|||
virtual void MovementInform(uint32 /*type*/, uint32 /*id*/) {}
|
||||
|
||||
// Called at MovePath End
|
||||
virtual void PathEndReached() {}
|
||||
virtual void PathEndReached(uint32 /*pathId*/) {}
|
||||
|
||||
void OnCharmed(bool apply) override;
|
||||
|
||||
|
|
|
|||
|
|
@ -137,8 +137,8 @@ bool WaypointMovementGenerator<Creature>::StartMove(Creature* creature)
|
|||
// Xinef: moved the upper IF here
|
||||
if ((i_currentNode == i_path->size() - 1) && !repeating) // If that's our last waypoint
|
||||
{
|
||||
creature->AI()->PathEndReached(path_id);
|
||||
creature->GetMotionMaster()->Initialize();
|
||||
creature->AI()->PathEndReached();
|
||||
return false;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue