diff options
| author | ariel- <ariel-@users.noreply.github.com> | 2017-02-27 14:34:23 -0300 |
|---|---|---|
| committer | ariel- <ariel-@users.noreply.github.com> | 2017-02-27 14:34:23 -0300 |
| commit | 9047d8bd6f549d4a30665cdaabf8811eeb516362 (patch) | |
| tree | ecc46d389b35aacd2caabed8c3e3190e3986b0e9 /src | |
| parent | 40489b8d5722969cef11b9c48ee50ef366333073 (diff) | |
Core/Auras: fix comparison of integers of different signs warning
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 bb661961f5a..f1f7a031491 100644 --- a/src/server/game/Spells/Auras/SpellAuraEffects.cpp +++ b/src/server/game/Spells/Auras/SpellAuraEffects.cpp @@ -3359,7 +3359,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) @@ -3395,7 +3395,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) { @@ -3506,7 +3506,7 @@ void AuraEffect::HandleModTotalPercentStat(AuraApplication const* aurApp, uint8 float healthPct = target->GetHealthPct(); bool alive = target->IsAlive(); - for (uint32 i = STAT_STRENGTH; i < MAX_STATS; ++i) + for (int32 i = STAT_STRENGTH; i < MAX_STATS; ++i) { if (GetMiscValue() == i || GetMiscValue() == -1) // affect the same stats { |
