Core/SAI: Fix SMART_ACTION_WP_RESUME actually pausing next waypoint if the current path was not paused

Fixes #25519

(cherry picked from commit 5be7c2ad4f)
This commit is contained in:
jackpoz
2020-10-04 19:43:49 +02:00
committed by Shauren
parent b059f2f8ee
commit eb17e94b2e
3 changed files with 14 additions and 1 deletions
@@ -1489,7 +1489,8 @@ void SmartScript::ProcessAction(SmartScriptHolder& e, Unit* unit, uint32 var0, u
break;
// Set the timer to 1 ms so the path will be resumed on next update loop
ENSURE_AI(SmartAI, me->AI())->SetWPPauseTimer(1);
if (ENSURE_AI(SmartAI, me->AI())->CanResumePath())
ENSURE_AI(SmartAI, me->AI())->SetWPPauseTimer(1);
break;
}
case SMART_ACTION_SET_ORIENTATION: