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:
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;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user