mirror of
https://github.com/ppy/osu.git
synced 2024-11-06 09:58:21 +08:00
Avoid nullrefs when data is not present
This commit is contained in:
parent
f9300ec3fe
commit
f129902ee0
@ -40,9 +40,9 @@ namespace osu.Game.Screens.Select.Details
|
||||
firstValue.Value = Beatmap?.Difficulty?.CircleSize ?? 0;
|
||||
}
|
||||
|
||||
hpDrain.Value = beatmap.Difficulty.DrainRate;
|
||||
accuracy.Value = beatmap.Difficulty.OverallDifficulty;
|
||||
approachRate.Value = beatmap.Difficulty.ApproachRate;
|
||||
hpDrain.Value = beatmap.Difficulty?.DrainRate ?? 0;
|
||||
accuracy.Value = beatmap.Difficulty?.OverallDifficulty ?? 0;
|
||||
approachRate.Value = beatmap.Difficulty?.ApproachRate ?? 0;
|
||||
starDifficulty.Value = (float)beatmap.StarDifficulty;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user