aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/game/Spell.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/game/Spell.cpp b/src/game/Spell.cpp
index e8a5724dfb0..4396c2f94f1 100644
--- a/src/game/Spell.cpp
+++ b/src/game/Spell.cpp
@@ -2134,7 +2134,7 @@ void Spell::cancel()
return;
SetReferencedFromCurrent(false);
- if(m_selfContainer)
+ if(m_selfContainer && *m_selfContainer == this)
*m_selfContainer = NULL;
uint32 oldState = m_spellState;