aboutsummaryrefslogtreecommitdiff
path: root/src/game/TemporarySummon.cpp
diff options
context:
space:
mode:
authormegamage <none@none>2009-07-01 18:23:36 -0500
committermegamage <none@none>2009-07-01 18:23:36 -0500
commit111dac5f94eac3fe26da2107842dea4e1aacd660 (patch)
tree94749b7199a4f0bb2f2826824261e49a85f84082 /src/game/TemporarySummon.cpp
parent9a2588a454af73fb1f6c456275ba07e6acc24d11 (diff)
[8102] Simplify code base at new root method WorldObject::CleanupsBeforeDelete Author: VladimirMangos
* Call it from Map::AddObjectToRemoveList and remove now not needed explcit calls * Create Gameobject version to make GO with owner more safe for remove --HG-- branch : trunk
Diffstat (limited to 'src/game/TemporarySummon.cpp')
-rw-r--r--src/game/TemporarySummon.cpp1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/game/TemporarySummon.cpp b/src/game/TemporarySummon.cpp
index 724d68c568b..42cf0f4c2ef 100644
--- a/src/game/TemporarySummon.cpp
+++ b/src/game/TemporarySummon.cpp
@@ -230,7 +230,6 @@ void TempSummon::UnSummon()
if(owner && owner->GetTypeId() == TYPEID_UNIT && ((Creature*)owner)->IsAIEnabled)
((Creature*)owner)->AI()->SummonedCreatureDespawn(this);
- CleanupsBeforeDelete();
AddObjectToRemoveList();
}