From ee7d76287908e7a2ab1b5a6ef0c7b0f6072ead77 Mon Sep 17 00:00:00 2001 From: Shauren Date: Tue, 12 Mar 2024 11:49:42 +0100 Subject: Core/SmartAI: Load paths by their id now that SAI doesn't use a separate database table as waypoints source (cherry picked from commit b93791255cc7ad8cd8388d9eb08babd91eff3075) --- src/server/game/AI/SmartScripts/SmartAI.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/server/game/AI/SmartScripts/SmartAI.cpp b/src/server/game/AI/SmartScripts/SmartAI.cpp index 6885a1a66cc..6b44dd52c06 100644 --- a/src/server/game/AI/SmartScripts/SmartAI.cpp +++ b/src/server/game/AI/SmartScripts/SmartAI.cpp @@ -71,7 +71,7 @@ void SmartAI::StartPath(uint32 pathId/* = 0*/, bool repeat/* = false*/, Unit* in me->ReplaceAllNpcFlags(UNIT_NPC_FLAG_NONE); } - me->GetMotionMaster()->MovePath(*path, _repeatWaypointPath); + me->GetMotionMaster()->MovePath(pathId, _repeatWaypointPath); } WaypointPath const* SmartAI::LoadPath(uint32 entry) -- cgit v1.2.3