*Combine gobject::deleteobjectwithowner and delete

--HG--
branch : trunk
This commit is contained in:
megamage
2009-09-02 14:52:52 -05:00
parent 73fde81744
commit 5b9868f468
4 changed files with 3 additions and 8 deletions

View File

@@ -206,7 +206,7 @@ struct TRINITY_DLL_DECL boss_sapphironAI : public BossAI
if (Player* pPlayer = Unit::GetPlayer(itr->first))
pPlayer->RemoveAura(SPELL_ICEBOLT);
if (GameObject* pGo = GameObject::GetGameObject(*me, itr->second))
pGo->DeleteObjectWithOwner();
pGo->Delete();
}
iceblocks.clear();
}

View File

@@ -200,7 +200,7 @@ bool GOHello_go_najentus_spine(Player* pPlayer, GameObject* pGo)
if (CAST_AI(boss_najentusAI, Najentus->AI())->RemoveImpalingSpine())
{
pPlayer->CastSpell(pPlayer, SPELL_CREATE_NAJENTUS_SPINE, true);
pGo->DeleteObjectWithOwner();
pGo->Delete();
}
return true;
}