Core/SmartAI: Add check to SMART_ACTION_PLAY_ANIMKIT to allow zero va…

…lue to remove animKit.
By Malcrom
This commit is contained in:
Aokromes committed 2017-03-21 23:29:55 +01:00
1 parent 86e7777332
commit a50db6df81
1 file changed
+1 -1
@@ -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)