Possibly fixed more memory leaks in other places.
--HG-- branch : trunk
This commit is contained in:
1 parent
5748c36621
commit
bfaaa8201e
6 files changed
+20
-3
No files matched your search
@@ -200,8 +200,13 @@ bool OutdoorPvPSI::HandleDropFlag(Player *plr, uint32 spellId)
|
||||
// he dropped it further, summon mound
|
||||
GameObject * go = new GameObject;
|
||||
Map * map = MapManager::Instance().GetMap(plr->GetMapId(), plr);
|
||||
if(!map)
|
||||
return true;
|
||||
if(!map){
|
||||
|
||||
delete go;
|
||||
return true;
|
||||
|
||||
}
|
||||
|
||||
if(!go->Create(objmgr.GenerateLowGuid(HIGHGUID_GAMEOBJECT),SI_SILITHYST_MOUND, map,plr->GetPositionX(),plr->GetPositionY(),plr->GetPositionZ(),plr->GetOrientation(),0,0,0,0,100,1))
|
||||
{
|
||||
delete go;
|
||||
|
||||
Reference in new issue
Block a user