Core/Waypoints: Refactor to split data into path and node related info in db (#29506)

This commit is contained in:
ModoX
2024-01-05 17:56:19 +01:00
committed by GitHub
parent 390f0be9fb
commit 12186ef857
29 changed files with 1147 additions and 682 deletions
@@ -1879,7 +1879,7 @@ bool SmartAIMgr::IsEventValid(SmartScriptHolder& e)
case SMART_ACTION_WP_START:
{
WaypointPath const* path = sWaypointMgr->GetPath(e.action.wpStart.pathID);
if (!path || path->nodes.empty())
if (!path || path->Nodes.empty())
{
TC_LOG_ERROR("sql.sql", "SmartAIMgr: Creature {} Event {} Action {} uses non-existent WaypointPath id {}, skipped.", e.entryOrGuid, e.event_id, e.GetActionType(), e.action.wpStart.pathID);
return false;