*Always delink spell and container when spell is cancelled.

--HG--
branch : trunk
This commit is contained in:
megamage committed 2009-04-05 17:31:12 -05:00
1 parent fef43ddbe7
commit e00106db55
3 files changed
+4 -4

No files matched your search

+4
View File
@@ -2133,6 +2133,10 @@ void Spell::cancel()
if(m_spellState == SPELL_STATE_FINISHED)
return;
SetReferencedFromCurrent(false);
if(m_selfContainer)
*m_selfContainer = NULL;
uint32 oldState = m_spellState;
m_spellState = SPELL_STATE_FINISHED;