aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorsilver1ce <none@none>2010-03-07 03:45:22 +0200
committersilver1ce <none@none>2010-03-07 03:45:22 +0200
commit0c11fcee1b58fbdafcadaaef3fb30b8480fbb664 (patch)
tree4f754d0b0214445768e90b72f5dfc2ca5a27c832 /src
parentefb123f4f7b0642330d2ae7af6a6fb859cbbfa30 (diff)
check creature's base stats table in more proper way
it should show more missing data --HG-- branch : trunk
Diffstat (limited to 'src')
-rw-r--r--src/game/ObjectMgr.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/game/ObjectMgr.cpp b/src/game/ObjectMgr.cpp
index 21db2983d88..b538f204bef 100644
--- a/src/game/ObjectMgr.cpp
+++ b/src/game/ObjectMgr.cpp
@@ -9004,9 +9004,10 @@ void ObjectMgr::LoadCreatureClassLevelStats()
if (!info)
continue;
- if (m_creatureBaseStatsMap.find( MAKE_PAIR16(info->maxlevel, info->unit_class) ) == m_creatureBaseStatsMap.end())
+ for(uint8 lvl = info->minlevel; lvl <= info->maxlevel; ++lvl)
{
- sLog.outErrorDb("Missing base stats for creature class %u maxlevel %u", info->unit_class, info->maxlevel);
+ if (m_creatureBaseStatsMap.find( MAKE_PAIR16(lvl, info->unit_class) ) == m_creatureBaseStatsMap.end())
+ sLog.outErrorDb("Missing base stats for creature class %u level %u", info->unit_class, lvl);
}
}