[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; 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 // 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]) if (!foundHolder->m_auras[i] || !holder->m_auras[i])

View file

@ -1,4 +1,4 @@
#ifndef __REVISION_NR_H__ #ifndef __REVISION_NR_H__
#define __REVISION_NR_H__ #define __REVISION_NR_H__
#define REVISION_NR "10318" #define REVISION_NR "10319"
#endif // __REVISION_NR_H__ #endif // __REVISION_NR_H__