From bb7061407fcd278ab6f669867381c514e8ccfcce Mon Sep 17 00:00:00 2001 From: treeston Date: Tue, 6 Jun 2017 22:24:10 +0200 Subject: SAI fixes follow-up: I missed one. (cherry picked from commit cb265e02aa38c17e203191b68966879a1ccb7b31) --- src/server/game/AI/SmartScripts/SmartScript.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/server') diff --git a/src/server/game/AI/SmartScripts/SmartScript.cpp b/src/server/game/AI/SmartScripts/SmartScript.cpp index 54d5b5f7fb4..a46c4f52993 100644 --- a/src/server/game/AI/SmartScripts/SmartScript.cpp +++ b/src/server/game/AI/SmartScripts/SmartScript.cpp @@ -2277,8 +2277,8 @@ void SmartScript::ProcessTimedAction(SmartScriptHolder& e, uint32 const& min, ui // We may want to execute action rarely and because of this if condition is not fulfilled the action will be rechecked in a long time if (sConditionMgr->IsObjectMeetingSmartEventConditions(e.entryOrGuid, e.event_id, e.source_type, unit, GetBaseObject())) { - ProcessAction(e, unit, var0, var1, bvar, spell, gob, varString); RecalcTimer(e, min, max); + ProcessAction(e, unit, var0, var1, bvar, spell, gob, varString); } else RecalcTimer(e, std::min(min, 5000), std::min(min, 5000)); -- cgit v1.2.3