diff options
author | ariel- <ariel-@users.noreply.github.com> | 2017-02-27 14:34:23 -0300 |
---|---|---|
committer | funjoker <funjoker109@gmail.com> | 2020-04-24 17:18:47 +0200 |
commit | 1c4b1ba498d4cec080f6750840f65b7390cb3feb (patch) | |
tree | 07ca144501861f6ee3de533a7921b3e525629966 /src | |
parent | e39ea201cebb2581842930e1236befe45d38b5a7 (diff) |
Core/Auras: fix comparison of integers of different signs warning
(cherry picked from commit 9047d8bd6f549d4a30665cdaabf8811eeb516362)
Diffstat (limited to 'src')
-rw-r--r-- | src/server/game/Spells/Auras/SpellAuraEffects.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/server/game/Spells/Auras/SpellAuraEffects.cpp b/src/server/game/Spells/Auras/SpellAuraEffects.cpp index b8992c7ee36..d80a4a762d8 100644 --- a/src/server/game/Spells/Auras/SpellAuraEffects.cpp +++ b/src/server/game/Spells/Auras/SpellAuraEffects.cpp @@ -3351,7 +3351,7 @@ void AuraEffect::HandleAuraModStat(AuraApplication const* aurApp, uint8 mode, bo if (abs(spellGroupVal) >= abs(GetAmount())) return; - for (uint32 i = STAT_STRENGTH; i < MAX_STATS; ++i) + for (int32 i = STAT_STRENGTH; i < MAX_STATS; ++i) { // -1 or -2 is all stats (misc < -2 checked in function beginning) if (GetMiscValue() < 0 || GetMiscValue() == i) @@ -3387,7 +3387,7 @@ void AuraEffect::HandleModPercentStat(AuraApplication const* aurApp, uint8 mode, if (target->GetTypeId() != TYPEID_PLAYER) return; - for (uint32 i = STAT_STRENGTH; i < MAX_STATS; ++i) + for (int32 i = STAT_STRENGTH; i < MAX_STATS; ++i) { if (GetMiscValue() == i || GetMiscValue() == -1) { @@ -3507,7 +3507,7 @@ void AuraEffect::HandleModTotalPercentStat(AuraApplication const* aurApp, uint8 if (target->getDeathState() == CORPSE) zeroHealth = (target->GetHealth() == 0); - for (uint32 i = STAT_STRENGTH; i < MAX_STATS; ++i) + for (int32 i = STAT_STRENGTH; i < MAX_STATS; ++i) { if (GetMiscValueB() & 1 << i || !GetMiscValueB()) // 0 is also used for all stats { |