Core: Include the name and ID of the affected BG in Battleground::GetBGCreature() error-reporting

--HG--
branch : trunk
This commit is contained in:
click
2010-12-26 00:06:03 +01:00
parent b0eaf1f42c
commit f5492f82b5

View File

@@ -1496,7 +1496,7 @@ Creature* Battleground::GetBGCreature(uint32 type)
{
Creature *creature = GetBgMap()->GetCreature(m_BgCreatures[type]);
if (!creature)
sLog->outError("couldn't get creature %i",type);
sLog->outError("Could not get BG creature %i (BG: %s Instance: %u)", type, GetBgMap()->GetBG()->GetName(), GetBgMap()->GetInstanceId());
return creature;
}