mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-20 17:27:36 +01:00
Core/Auras: fix comparison of integers of different signs warning
(cherry picked from commit 9047d8bd6f)
This commit is contained in:
@@ -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
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user