Core/SAI: Execute SMART_EVENT_WAYPOINT_REACHED events only once

This commit is contained in:
Malcrom authored and leak committed 2011-02-15 02:54:13 +01:00
1 parent dcacdd0932
commit 5241fefe7f
1 file changed
+1 -1
+1 -1
View File
@@ -419,7 +419,7 @@ bool SmartAI::IsEscortInvokerInRange()
void SmartAI::MovepointReached(uint32 id)
{
if (id != SMART_ESCORT_LAST_OOC_POINT)
if (id != SMART_ESCORT_LAST_OOC_POINT && mLastWPIDReached != id)
GetScript()->ProcessEventsFor(SMART_EVENT_WAYPOINT_REACHED, NULL, id);
mLastWPIDReached = id;