aboutsummaryrefslogtreecommitdiff
path: root/src/game/Spell.cpp
diff options
context:
space:
mode:
authormegamage <none@none>2009-04-05 17:31:12 -0500
committermegamage <none@none>2009-04-05 17:31:12 -0500
commite00106db5511f8a428c7b40df7e5f310bcefda16 (patch)
tree9bb07f021a113db05f897fa95e117ca206c5a163 /src/game/Spell.cpp
parentfef43ddbe7c498be7d154926a88f09c2534f8d48 (diff)
*Always delink spell and container when spell is cancelled.
--HG-- branch : trunk
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;