mirror of
https://github.com/ppy/osu.git
synced 2024-11-06 06:57:39 +08:00
Fix potential nullref
This commit is contained in:
parent
cb5a35f8f9
commit
2905a4418d
@ -82,7 +82,7 @@ namespace osu.Game.Screens.Select
|
||||
|
||||
private void updateMultiplierText()
|
||||
{
|
||||
var multiplier = Current.Value.Aggregate(1.0, (current, mod) => current * mod.ScoreMultiplier);
|
||||
double multiplier = Current.Value?.Aggregate(1.0, (current, mod) => current * mod.ScoreMultiplier) ?? 1;
|
||||
|
||||
MultiplierText.Text = multiplier.Equals(1.0) ? string.Empty : $"{multiplier:N2}x";
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user