[10319] Prevent double remove aura holder at stacking limit.

If aura holder have 2 or 3 auras with fit to aura type stacking limitation
code can attempt deleted old aura holder 2/3 times.
This commit is contained in:
VladimirMangos 2010-08-04 18:58:47 +04:00
parent 29ab336b27
commit bfb1cb9e67
2 changed files with 2 additions and 2 deletions

View file

@ -3892,7 +3892,7 @@ bool Unit::AddSpellAuraHolder(SpellAuraHolder *holder)
bool stop = false;
for (int32 i = 0; i < MAX_EFFECT_INDEX; ++i)
for (int32 i = 0; i < MAX_EFFECT_INDEX && !stop; ++i)
{
// no need to check non stacking auras that weren't/won't be applied on this target
if (!foundHolder->m_auras[i] || !holder->m_auras[i])