Scripts/Icecrown Citadel: Fix "intended" crash

Change an assert (that can happen easily using ".npc add") to a sanity check
This commit is contained in:
jackpoz authored and Aokromes committed 2018-05-12 13:23:44 +02:00
1 parent 98364454ca
commit a5cad33ba0
1 file changed
+2 -1
@@ -997,7 +997,8 @@ class npc_saurfang_event : public CreatureScript
void SetData(uint32 type, uint32 data) override
{
ASSERT(!type && data && data < 6);
if (!(!type && data && data < 6))
return;
_index = data;
}