From a50db6df81c26bb710dc24b6c6c6312a228458ad Mon Sep 17 00:00:00 2001 From: Aokromes Date: Tue, 21 Mar 2017 23:29:55 +0100 Subject: [PATCH] =?UTF-8?q?Core/SmartAI:=20Add=20check=20to=20SMART=5FACTI?= =?UTF-8?q?ON=5FPLAY=5FANIMKIT=20to=20allow=20zero=20va=E2=80=A6=20?= =?UTF-8?q?=E2=80=A6lue=20to=20remove=20animKit.=20By=20Malcrom?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/server/game/AI/SmartScripts/SmartScriptMgr.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/server/game/AI/SmartScripts/SmartScriptMgr.cpp b/src/server/game/AI/SmartScripts/SmartScriptMgr.cpp index 166c4c6fc5..37a20ae14c 100644 --- a/src/server/game/AI/SmartScripts/SmartScriptMgr.cpp +++ b/src/server/game/AI/SmartScripts/SmartScriptMgr.cpp @@ -887,7 +887,7 @@ bool SmartAIMgr::IsEventValid(SmartScriptHolder& e) return false; break; case SMART_ACTION_PLAY_ANIMKIT: - if (!IsAnimKitValid(e, e.action.animKit.animKit)) + if (e.action.animKit.animKit && !IsAnimKitValid(e, e.action.animKit.animKit)) return false; if (e.action.animKit.type > 3)