Fix nullref with null beatmap

This commit is contained in:
smoogipoo 2020-08-28 22:51:39 +09:00
parent d7bbb362bf
commit ec2674e1ea

View File

@ -116,6 +116,12 @@ namespace osu.Game.Scoring
private void onScoringModeChanged(ValueChangedEvent<ScoringMode> mode)
{
if (score.Beatmap == null)
{
Value = score.TotalScore;
return;
}
int? beatmapMaxCombo = score.Beatmap.MaxCombo;
if (beatmapMaxCombo == null)