aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAokromes <Aokromes@users.noreply.github.com>2017-03-21 23:27:07 +0100
committerGitHub <noreply@github.com>2017-03-21 23:27:07 +0100
commit464ba05dd4ba6f37762fcabd909c1d58748621e8 (patch)
tree8d483ceb2ea3420a0c0649c6472109595aed9f82 /src
parentc290fc387b71c39c239acb097b3590df5c33cae9 (diff)
Core/SmartAI: Add check to SMART_ACTION_PLAY_ANIMKIT to allow zero value to remove animKit.
By Malcrom
Diffstat (limited to 'src')
-rw-r--r--src/server/game/AI/SmartScripts/SmartScriptMgr.cpp2
1 files changed, 1 insertions, 1 deletions
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)