diff options
author | megamage <none@none> | 2009-05-21 15:17:51 -0500 |
---|---|---|
committer | megamage <none@none> | 2009-05-21 15:17:51 -0500 |
commit | 31005dab8217f988fbbcbcb838d945ef81437a5a (patch) | |
tree | e16be1adf7d1509be8c7c90aeaea4bac122d1fd3 /src | |
parent | 32064b79dadb547054f91369085c15cb708269d6 (diff) |
*Fix a infinite loop introduced in 3444.
--HG--
branch : trunk
Diffstat (limited to 'src')
-rw-r--r-- | src/game/MotionMaster.cpp | 1 | ||||
-rw-r--r-- | src/game/Unit.cpp | 2 |
2 files changed, 1 insertions, 2 deletions
diff --git a/src/game/MotionMaster.cpp b/src/game/MotionMaster.cpp index da811ab02ed..f8241987d16 100644 --- a/src/game/MotionMaster.cpp +++ b/src/game/MotionMaster.cpp @@ -464,6 +464,7 @@ void MotionMaster::Mutate(MovementGenerator *m, MovementSlot slot) { if(MovementGenerator *curr = Impl[slot]) { + Impl[slot] = NULL; // in case a new one is generated in this slot during directdelete if(i_top == slot && (m_cleanFlag & MMCF_UPDATE)) DelayedDelete(curr); else diff --git a/src/game/Unit.cpp b/src/game/Unit.cpp index c8f280a906f..6f6d323c2a8 100644 --- a/src/game/Unit.cpp +++ b/src/game/Unit.cpp @@ -3903,8 +3903,6 @@ bool Unit::RemoveNoStackAurasDueToAura(Aura *Aur) return true; } - SpellSpecific spellId_spec = GetSpellSpecific(spellId); - //bool linked = spellmgr.GetSpellCustomAttr(spellId) & SPELL_ATTR_CU_LINK_AURA? true : false; for(AuraMap::iterator i = m_Auras.begin(); i != m_Auras.end(); ++i) |