*Fix a infinite loop introduced in 3444.

--HG--
branch : trunk
This commit is contained in:
megamage
2009-05-21 15:17:51 -05:00
parent 32064b79da
commit 31005dab82
2 changed files with 1 additions and 2 deletions
+1
View File
@@ -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
-2
View File
@@ -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)