fix(Core/PlayerUpdates): one more C++20 compile warning (#8959)

This commit is contained in:
Francesco Borzì
2021-11-05 08:57:13 +01:00
committed by GitHub
parent 16489b56fe
commit c91959bba9

View File

@@ -599,7 +599,7 @@ void Player::UpdateRating(CombatRating cr)
(*i)->GetAmount()));
if (amount < 0)
amount = 0;
SetUInt32Value(PLAYER_FIELD_COMBAT_RATING_1 + cr, uint32(amount));
SetUInt32Value(static_cast<uint16>(PLAYER_FIELD_COMBAT_RATING_1) + static_cast<uint16>(cr), uint32(amount));
bool affectStats = CanModifyStats();