diff options
author | Rushor <Rushor@users.noreply.github.com> | 2020-04-22 19:49:41 +0200 |
---|---|---|
committer | Shauren <shauren.trinity@gmail.com> | 2022-01-01 20:12:55 +0100 |
commit | 864ce5a11cab0e6b62e74eea958b02452e6c8797 (patch) | |
tree | 91185a9bffda3982fc94a6edbb2ea310d084e77a /src | |
parent | fbedd77fe5c2ee4faf78dcee9c386b75aa2e14fb (diff) |
Game/SmartScripts: Reset counter in SAI only on Initialize. (#24489)
* Game/SmartScripts: Reset counter in SAI only on Initialize.
* Game/SmartScripts: Reset counter in SAI only on Initialize.
(cherry picked from commit 4f52f7d7c9f57b3ee0347888ce3a77b6363d1be9)
Diffstat (limited to 'src')
-rw-r--r-- | src/server/game/AI/SmartScripts/SmartScript.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/server/game/AI/SmartScripts/SmartScript.cpp b/src/server/game/AI/SmartScripts/SmartScript.cpp index ba77f214e2a..b668179c68b 100644 --- a/src/server/game/AI/SmartScripts/SmartScript.cpp +++ b/src/server/game/AI/SmartScripts/SmartScript.cpp @@ -191,7 +191,6 @@ void SmartScript::OnReset() } ProcessEventsFor(SMART_EVENT_RESET); mLastInvoker.Clear(); - mCounterList.clear(); } void SmartScript::ResetBaseObject() @@ -4106,6 +4105,7 @@ void SmartScript::OnInitialize(WorldObject* obj, AreaTriggerEntry const* at, Sce ProcessEventsFor(SMART_EVENT_AI_INIT); InstallEvents(); ProcessEventsFor(SMART_EVENT_JUST_CREATED); + mCounterList.clear(); } void SmartScript::OnMoveInLineOfSight(Unit* who) |