From 1bb648ccb9ab60a9c338e600dee784d845686063 Mon Sep 17 00:00:00 2001 From: Machiavelli Date: Tue, 22 Dec 2009 22:14:04 +0100 Subject: Also add expansion and unit class to debug output when base stats for creature cannot be found to better pinpoint lack of DB support. --HG-- branch : trunk --- src/game/ObjectMgr.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'src') diff --git a/src/game/ObjectMgr.cpp b/src/game/ObjectMgr.cpp index 06f831898f4..01867c7cffc 100644 --- a/src/game/ObjectMgr.cpp +++ b/src/game/ObjectMgr.cpp @@ -8948,9 +8948,7 @@ BaseHealthManaPair ObjectMgr::GenerateCreatureStats(uint32 level, CreatureInfo c CreatureBaseStats const* stats = GetCreatureBaseStats(info->expansion, info->unit_class, level); if (!stats) - { - sLog.outError("Could not find base stats for creature entry %u (base stats level %u)", info->Entry, level); - } + sLog.outError("Could not find base stats for creature entry %u (base stats: expansion %u, class %u, level %u)", info->Entry, info->expansion, info->unit_class, level); else { health = stats->GenerateHealth(level, info); -- cgit v1.2.3