aboutsummaryrefslogtreecommitdiff
path: root/src/game/OutdoorPvPSI.cpp
diff options
context:
space:
mode:
authormegamage <none@none>2009-05-15 13:57:10 -0500
committermegamage <none@none>2009-05-15 13:57:10 -0500
commitff7f023ff1eb884213ca0efccf686c7387920952 (patch)
tree10bb1c87e9eda6ffd749100245c154f1fc8c7a28 /src/game/OutdoorPvPSI.cpp
parente826b482a59347d55274e183125062534d0f4efb (diff)
parentbfaaa8201e6887fedd2145d668f40a484a609dac (diff)
*Merge.
--HG-- branch : trunk
Diffstat (limited to 'src/game/OutdoorPvPSI.cpp')
-rw-r--r--src/game/OutdoorPvPSI.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/game/OutdoorPvPSI.cpp b/src/game/OutdoorPvPSI.cpp
index bb4cd22edfa..366c5923351 100644
--- a/src/game/OutdoorPvPSI.cpp
+++ b/src/game/OutdoorPvPSI.cpp
@@ -201,7 +201,11 @@ bool OutdoorPvPSI::HandleDropFlag(Player *plr, uint32 spellId)
GameObject * go = new GameObject;
Map * map = MapManager::Instance().GetMap(plr->GetMapId(), plr);
if(!map)
+ {
+ delete go;
return true;
+ }
+
if(!go->Create(objmgr.GenerateLowGuid(HIGHGUID_GAMEOBJECT),SI_SILITHYST_MOUND, map, plr->GetPhaseMask(), plr->GetPositionX(),plr->GetPositionY(),plr->GetPositionZ(),plr->GetOrientation(),0,0,0,0,100,GO_STATE_READY))
{
delete go;