*Remove incorrect object deletion from EffectSummonObject call and use RemoveGameObject() instead.

--HG--
branch : trunk
This commit is contained in:
QAston committed 2009-07-12 02:34:24 +02:00
1 parent 87213301e7
commit bda2a721fa
3 files changed
+6 -10

No files matched your search

+1 -1
View File
@@ -5874,7 +5874,7 @@ void Spell::EffectSummonObject(uint32 i)
// Recast case - null spell id to make auras not be removed on object remove from world
if (m_spellInfo->Id == obj->GetSpellId())
obj->SetSpellId(0);
obj->Delete();
m_caster->RemoveGameObject(obj, true);
}
m_caster->m_ObjectSlot[slot] = 0;
}