Possibly fixed more memory leaks in other places.

--HG--
branch : trunk
This commit is contained in:
raczman
2009-05-13 14:06:33 +02:00
parent 5748c36621
commit bfaaa8201e
6 changed files with 20 additions and 3 deletions

View File

@@ -1323,6 +1323,7 @@ Creature* BattleGround::AddCreature(uint32 entry, uint32 type, uint32 teamval, f
if(!pCreature->IsPositionValid())
{
sLog.outError("ERROR: Creature (guidlow %d, entry %d) not added to battleground. Suggested coordinates isn't valid (X: %f Y: %f)",pCreature->GetGUIDLow(),pCreature->GetEntry(),pCreature->GetPositionX(),pCreature->GetPositionY());
delete pCreature;
return NULL;
}