aboutsummaryrefslogtreecommitdiff
path: root/src/game/Spell.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/game/Spell.cpp')
-rw-r--r--src/game/Spell.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/game/Spell.cpp b/src/game/Spell.cpp
index 1e9a2a7d60e..e8a5724dfb0 100644
--- a/src/game/Spell.cpp
+++ b/src/game/Spell.cpp
@@ -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;