Core/SAI: Fix SMART_EVENT_WAYPOINT_START not being called at every waypoint checking wrong path id parameter

Remove multiple calls to SMART_EVENT_WAYPOINT_START for the 1st waypoint.
Closes #24760

(cherry picked from commit b3694bf47b)
This commit is contained in:
jackpoz
2020-09-06 17:35:26 +02:00
committed by Shauren
parent e0e3bae82c
commit c2d2df96db
2 changed files with 5 additions and 12 deletions
@@ -3474,13 +3474,13 @@ void SmartScript::ProcessEvent(SmartScriptHolder& e, Unit* unit, uint32 var0, ui
break;
}
case SMART_EVENT_TRANSPORT_RELOCATE:
case SMART_EVENT_WAYPOINT_START:
{
if (e.event.waypoint.pathID && var0 != e.event.waypoint.pathID)
if (e.event.transportRelocate.pointID && var0 != e.event.transportRelocate.pointID)
return;
ProcessAction(e, unit, var0);
break;
}
case SMART_EVENT_WAYPOINT_START:
case SMART_EVENT_WAYPOINT_REACHED:
case SMART_EVENT_WAYPOINT_RESUMED:
case SMART_EVENT_WAYPOINT_PAUSED: