mirror of
https://github.com/ppy/osu.git
synced 2025-02-10 13:03:01 +08:00
Fix nullref with null beatmap
This commit is contained in:
parent
d7bbb362bf
commit
ec2674e1ea
@ -116,6 +116,12 @@ namespace osu.Game.Scoring
|
|||||||
|
|
||||||
private void onScoringModeChanged(ValueChangedEvent<ScoringMode> mode)
|
private void onScoringModeChanged(ValueChangedEvent<ScoringMode> mode)
|
||||||
{
|
{
|
||||||
|
if (score.Beatmap == null)
|
||||||
|
{
|
||||||
|
Value = score.TotalScore;
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
int? beatmapMaxCombo = score.Beatmap.MaxCombo;
|
int? beatmapMaxCombo = score.Beatmap.MaxCombo;
|
||||||
|
|
||||||
if (beatmapMaxCombo == null)
|
if (beatmapMaxCombo == null)
|
||||||
|
Loading…
Reference in New Issue
Block a user