From ae657b2c3151ad24fc38a06c44f828a26c852aee Mon Sep 17 00:00:00 2001 From: Ovahlord Date: Tue, 18 Feb 2020 22:39:40 +0100 Subject: [PATCH] Core/AI: fixed smartAI validation --- src/server/game/AI/SmartScripts/SmartScriptMgr.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/server/game/AI/SmartScripts/SmartScriptMgr.cpp b/src/server/game/AI/SmartScripts/SmartScriptMgr.cpp index 54cba6d7836..9e2ba38d642 100644 --- a/src/server/game/AI/SmartScripts/SmartScriptMgr.cpp +++ b/src/server/game/AI/SmartScripts/SmartScriptMgr.cpp @@ -1547,12 +1547,14 @@ bool SmartAIMgr::IsEventValid(SmartScriptHolder& e) TC_LOG_ERROR("sql.sql", "Entry %u SourceType %u Event %u Action %u does not specify duration", e.entryOrGuid, e.GetScriptType(), e.event_id, e.GetActionType()); return false; } + break; case SMART_ACTION_PAUSE_MOVEMENT: if (!e.action.pauseMovement.pauseTimer) { TC_LOG_ERROR("sql.sql", "Entry %u SourceType %u Event %u Action %u does not specify pause duration", e.entryOrGuid, e.GetScriptType(), e.event_id, e.GetActionType()); return false; } + break; case SMART_ACTION_START_CLOSEST_WAYPOINT: case SMART_ACTION_FOLLOW: case SMART_ACTION_SET_ORIENTATION: