Better way to fix some of the warnings of the previous commit

This commit is contained in:
Spp committed 2012-08-17 14:30:10 +02:00
1 parent 8da0bbdbb3
commit 9749fe55f8
9 files changed
+19 -19

No files matched your search

+1 -1
View File
@@ -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);
}
}