1
0
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:
smoogipoo 2019-12-18 21:30:57 +09:00
parent cb5a35f8f9
commit 2905a4418d

View File

@ -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";