Merge pull request #7379 from Vincent-Michael/warning

Core: Fix warnings
This commit is contained in:
Nay
2012-08-13 10:34:04 -07:00

View File

@@ -17059,7 +17059,7 @@ bool Player::LoadFromDB(uint32 guid, SQLQueryHolder *holder)
// set value, including drunk invisibility detection
// calculate sobering. after 15 minutes logged out, the player will be sober again
uint8 newDrunkValue = 0;
if (time_diff < GetDrunkValue() * 9)
if (time_diff < uint32(GetDrunkValue()) * 9)
newDrunkValue = GetDrunkValue() - time_diff / 9;
SetDrunkValue(newDrunkValue);