From 0c11fcee1b58fbdafcadaaef3fb30b8480fbb664 Mon Sep 17 00:00:00 2001 From: silver1ce Date: Sun, 7 Mar 2010 03:45:22 +0200 Subject: check creature's base stats table in more proper way it should show more missing data --HG-- branch : trunk --- src/game/ObjectMgr.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/game/ObjectMgr.cpp') 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); } } -- cgit v1.2.3