[11332] Avoid use direct mechanic names in loop bounds for version portability.

This commit is contained in:
VladimirMangos 2011-04-11 23:57:08 +04:00
parent 16c562b7a0
commit 6f34696350
3 changed files with 5 additions and 2 deletions

View file

@ -8718,7 +8718,7 @@ int32 Unit::CalculateAuraDuration(SpellEntry const* spellProto, uint32 effectMas
int32 mechanicMod = 0;
uint32 mechanicMask = GetSpellMechanicMask(spellProto, effectMask);
for(int32 mechanic = MECHANIC_CHARM; mechanic <= MECHANIC_ENRAGED; ++mechanic)
for(int32 mechanic = FIRST_MECHANIC; mechanic < MAX_MECHANIC; ++mechanic)
{
if (!(mechanicMask & (1 << (mechanic-1))))
continue;