Core/Waypoints: Refactor to split data into path and node related info in db
Port From (https://github.com/TrinityCore/TrinityCore/commit/12186ef8573f60abeff4747da58767ee71092600)
This commit is contained in:
@@ -1645,7 +1645,7 @@ namespace Game.AI
|
||||
case SmartActions.WpStart:
|
||||
{
|
||||
WaypointPath path = Global.WaypointMgr.GetPath(e.Action.wpStart.pathID);
|
||||
if (path == null || path.nodes.Empty())
|
||||
if (path == null || path.Nodes.Empty())
|
||||
{
|
||||
Log.outError(LogFilter.ScriptsAi, $"SmartAIMgr: {e} uses non-existent WaypointPath id {e.Action.wpStart.pathID}, skipped.");
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user