1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-14 22:22:54 +08:00

Add null check

This commit is contained in:
TheWildTree 2020-02-19 19:42:56 +01:00
parent 7ea67aa672
commit 84d6a8ae2a

View File

@ -147,7 +147,7 @@ namespace osu.Game.Overlays.BeatmapSet.Scores
{
Text = $@"{score.MaxCombo:N0}x",
Font = OsuFont.GetFont(size: text_size),
Colour = score.MaxCombo == score.Beatmap.MaxCombo ? highAccuracyColour : Color4.White
Colour = score.MaxCombo == score.Beatmap?.MaxCombo ? highAccuracyColour : Color4.White
}
});