aboutsummaryrefslogtreecommitdiff
path: root/src/game/ObjectMgr.cpp
diff options
context:
space:
mode:
authorXTZGZoReX <none@none>2010-01-14 18:08:42 +0100
committerXTZGZoReX <none@none>2010-01-14 18:08:42 +0100
commit91ee03d9bf14e17e048c6b162307524845e9ab64 (patch)
treef7c9306a05abf22ae78858b3b354388c9d739486 /src/game/ObjectMgr.cpp
parent97576c68c4d70f6ce803fb6db436c3b9ca616d1a (diff)
* creature_template.unit_class cannot be 0 - added check for this.
--HG-- branch : trunk
Diffstat (limited to 'src/game/ObjectMgr.cpp')
-rw-r--r--src/game/ObjectMgr.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/game/ObjectMgr.cpp b/src/game/ObjectMgr.cpp
index b762e2bd85f..36be907cbaa 100644
--- a/src/game/ObjectMgr.cpp
+++ b/src/game/ObjectMgr.cpp
@@ -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)