From 464ba05dd4ba6f37762fcabd909c1d58748621e8 Mon Sep 17 00:00:00 2001 From: Aokromes Date: Tue, 21 Mar 2017 23:27:07 +0100 Subject: Core/SmartAI: Add check to SMART_ACTION_PLAY_ANIMKIT to allow zero value to remove animKit. By Malcrom --- src/server/game/AI/SmartScripts/SmartScriptMgr.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/server/game/AI/SmartScripts/SmartScriptMgr.cpp b/src/server/game/AI/SmartScripts/SmartScriptMgr.cpp index c3ba1d4ef0e..9a3b31ec875 100644 --- a/src/server/game/AI/SmartScripts/SmartScriptMgr.cpp +++ b/src/server/game/AI/SmartScripts/SmartScriptMgr.cpp @@ -824,7 +824,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) -- cgit v1.2.3