diff options
author | megamage <none@none> | 2009-09-02 14:52:52 -0500 |
---|---|---|
committer | megamage <none@none> | 2009-09-02 14:52:52 -0500 |
commit | 5b9868f468e48bb4dbcbffeb999b0a9315bc0364 (patch) | |
tree | 1f9bfc623d35769991946c3f125f8c3729f5d6b7 /src/game/GameObject.cpp | |
parent | 73fde81744a395715ca965c9589f66883e220bca (diff) |
*Combine gobject::deleteobjectwithowner and delete
--HG--
branch : trunk
Diffstat (limited to 'src/game/GameObject.cpp')
-rw-r--r-- | src/game/GameObject.cpp | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/src/game/GameObject.cpp b/src/game/GameObject.cpp index 10ed4af509e..cc0d7f17fb7 100644 --- a/src/game/GameObject.cpp +++ b/src/game/GameObject.cpp @@ -489,17 +489,13 @@ void GameObject::AddUniqueUse(Player* player) m_unique_users.insert(player->GetGUIDLow()); } -void GameObject::DeleteObjectWithOwner() +void GameObject::Delete() { SetLootState(GO_NOT_READY); if (GetOwnerGUID()) if (Unit * owner = GetOwner(false)) owner->RemoveGameObject(this, false); - Delete(); -} -void GameObject::Delete() -{ assert (!GetOwnerGUID()); SendObjectDeSpawnAnim(GetGUID()); |