fix(Core/PlayerUpdates): one more C++20 compile warning (#8959)
This commit is contained in:
@@ -599,7 +599,7 @@ void Player::UpdateRating(CombatRating cr)
|
|||||||
(*i)->GetAmount()));
|
(*i)->GetAmount()));
|
||||||
if (amount < 0)
|
if (amount < 0)
|
||||||
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();
|
bool affectStats = CanModifyStats();
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user