Core/SmartAI: Load paths by their id now that SAI doesn't use a separate database table as waypoints source

(cherry picked from commit b93791255c)
This commit is contained in:
Shauren
2024-03-12 11:49:42 +01:00
committed by funjoker
parent 5ce300c395
commit ee7d762879

View File

@@ -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)