diff options
Diffstat (limited to 'src/server/game/AI/SmartScripts')
| -rw-r--r-- | src/server/game/AI/SmartScripts/SmartAI.cpp | 5 | ||||
| -rw-r--r-- | src/server/game/AI/SmartScripts/SmartAI.h | 2 | 
2 files changed, 4 insertions, 3 deletions
| diff --git a/src/server/game/AI/SmartScripts/SmartAI.cpp b/src/server/game/AI/SmartScripts/SmartAI.cpp index 8b12c40ccb2..2b815b677a3 100644 --- a/src/server/game/AI/SmartScripts/SmartAI.cpp +++ b/src/server/game/AI/SmartScripts/SmartAI.cpp @@ -340,11 +340,12 @@ bool SmartAI::IsEscortInvokerInRange()  }  ///@todo move escort related logic -void SmartAI::WaypointPathStarted(uint32 nodeId, uint32 pathId) +void SmartAI::WaypointPathStarted(uint32 pathId)  {      if (!HasEscortState(SMART_ESCORT_ESCORTING))      { -        GetScript()->ProcessEventsFor(SMART_EVENT_WAYPOINT_START, nullptr, nodeId, pathId); +        // @todo remove the constant 1 at some point, it's never anything different +        GetScript()->ProcessEventsFor(SMART_EVENT_WAYPOINT_START, nullptr, 1, pathId);          return;      }  } diff --git a/src/server/game/AI/SmartScripts/SmartAI.h b/src/server/game/AI/SmartScripts/SmartAI.h index 20f607d476f..35b7d534e19 100644 --- a/src/server/game/AI/SmartScripts/SmartAI.h +++ b/src/server/game/AI/SmartScripts/SmartAI.h @@ -68,7 +68,7 @@ class TC_GAME_API SmartAI : public CreatureAI          void StopFollow(bool complete);          bool IsEscortInvokerInRange(); -        void WaypointPathStarted(uint32 nodeId, uint32 pathId) override; +        void WaypointPathStarted(uint32 pathId) override;          void WaypointStarted(uint32 nodeId, uint32 pathId) override;          void WaypointReached(uint32 nodeId, uint32 pathId) override;          void WaypointPathEnded(uint32 nodeId, uint32 pathId) override; | 
