Better way to fix some of the warnings of the previous commit
This commit is contained in:
1 parent
8da0bbdbb3
commit
9749fe55f8
9 files changed
+19
-19
No files matched your search
@@ -253,7 +253,7 @@ bool Pet::LoadPetFromDB(Player* owner, uint32 petentry, uint32 petnumber, bool c
|
||||
else
|
||||
{
|
||||
SetHealth(savedhealth > GetMaxHealth() ? GetMaxHealth() : savedhealth);
|
||||
SetPower(POWER_MANA, savedmana > GetMaxPower(POWER_MANA) ? GetMaxPower(POWER_MANA) : savedmana);
|
||||
SetPower(POWER_MANA, savedmana > uint32(GetMaxPower(POWER_MANA)) ? GetMaxPower(POWER_MANA) : savedmana);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user