Core/SmartAI: Add check to SMART_ACTION_PLAY_ANIMKIT to allow zero value to remove animKit.

By Malcrom
This commit is contained in:
Aokromes
2017-03-21 23:27:07 +01:00
committed by GitHub
parent c290fc387b
commit 464ba05dd4
@@ -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)