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/OutdoorPvP.cpp | |
parent | 5748c36621f36a64cad29243dfe880291826059a (diff) |
Possibly fixed more memory leaks in other places.
--HG--
branch : trunk
Diffstat (limited to 'src/game/OutdoorPvP.cpp')
-rw-r--r-- | src/game/OutdoorPvP.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/game/OutdoorPvP.cpp b/src/game/OutdoorPvP.cpp index 99b1c9a55f0..17f08131197 100644 --- a/src/game/OutdoorPvP.cpp +++ b/src/game/OutdoorPvP.cpp @@ -170,6 +170,7 @@ bool OutdoorPvPObjective::AddCreature(uint32 type, uint32 entry, uint32 teamval, if(!pCreature->IsPositionValid()) { sLog.outError("ERROR: Creature (guidlow %d, entry %d) not added to opvp. Suggested coordinates isn't valid (X: %f Y: %f)",pCreature->GetGUIDLow(),pCreature->GetEntry(),pCreature->GetPositionX(),pCreature->GetPositionY()); + delete pCreature; return false; } @@ -283,6 +284,7 @@ bool OutdoorPvPObjective::AddCapturePoint(uint32 entry, uint32 map, float x, flo if(!pCreature->IsPositionValid()) { sLog.outError("ERROR: Creature (guidlow %d, entry %d) not added to opvp. Suggested coordinates isn't valid (X: %f Y: %f)",pCreature->GetGUIDLow(),pCreature->GetEntry(),pCreature->GetPositionX(),pCreature->GetPositionY()); + delete pCreature; return false; } |