*Always delink spell and container when spell is cancelled.

--HG--
branch : trunk
This commit is contained in:
megamage
2009-04-05 17:31:12 -05:00
parent fef43ddbe7
commit e00106db55
3 changed files with 4 additions and 4 deletions

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;