* creature_template.unit_class cannot be 0 - added check for this.
--HG-- branch : trunk
This commit is contained in:
1 parent
97576c68c4
commit
91ee03d9bf
2 files changed
+11
-2
No files matched your search
@@ -691,7 +691,7 @@ void ObjectMgr::LoadCreatureTemplates()
|
||||
}
|
||||
}
|
||||
|
||||
if (cInfo->unit_class && ((1 << (cInfo->unit_class-1)) & CLASSMASK_ALL_CREATURES) == 0)
|
||||
if (!cInfo->unit_class || ((1 << (cInfo->unit_class-1)) & CLASSMASK_ALL_CREATURES) == 0)
|
||||
sLog.outErrorDb("Creature (Entry: %u) has invalid unit_class(%u) for creature_template", cInfo->Entry, cInfo->unit_class);
|
||||
|
||||
if(cInfo->dmgschool >= MAX_SPELL_SCHOOL)
|
||||
|
||||
Reference in new issue
Block a user