diff options
author | raczman <none@none> | 2009-05-13 14:06:33 +0200 |
---|---|---|
committer | raczman <none@none> | 2009-05-13 14:06:33 +0200 |
commit | bfaaa8201e6887fedd2145d668f40a484a609dac (patch) | |
tree | 869eeca5c3f71d64d15e4eb28b2f4fad70f36fad /src/game/BattleGround.cpp | |
parent | 5748c36621f36a64cad29243dfe880291826059a (diff) |
Possibly fixed more memory leaks in other places.
--HG--
branch : trunk
Diffstat (limited to 'src/game/BattleGround.cpp')
-rw-r--r-- | src/game/BattleGround.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/game/BattleGround.cpp b/src/game/BattleGround.cpp index 6c8185b97d2..9be5650a16e 100644 --- a/src/game/BattleGround.cpp +++ b/src/game/BattleGround.cpp @@ -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; } |