Core: Fix warnings

This commit is contained in:
Vincent-Michael
2012-08-13 19:24:47 +02:00
parent a3adf6a2b9
commit 56d10f218d
+1 -1
View File
@@ -17059,7 +17059,7 @@ bool Player::LoadFromDB(uint32 guid, SQLQueryHolder *holder)
// set value, including drunk invisibility detection // set value, including drunk invisibility detection
// calculate sobering. after 15 minutes logged out, the player will be sober again // calculate sobering. after 15 minutes logged out, the player will be sober again
uint8 newDrunkValue = 0; uint8 newDrunkValue = 0;
if (time_diff < GetDrunkValue() * 9) if (time_diff < uint32(GetDrunkValue()) * 9)
newDrunkValue = GetDrunkValue() - time_diff / 9; newDrunkValue = GetDrunkValue() - time_diff / 9;
SetDrunkValue(newDrunkValue); SetDrunkValue(newDrunkValue);