mirror of
https://github.com/ppy/osu.git
synced 2024-12-05 09:42:54 +08:00
Use TryGetValue to make tests happy
This commit is contained in:
parent
44cfed8af1
commit
fdcb60706b
@ -57,7 +57,7 @@ namespace osu.Game.Screens.Ranking.Expanded
|
||||
var topStatistics = new List<StatisticDisplay>
|
||||
{
|
||||
new AccuracyStatistic(score.Accuracy),
|
||||
new ComboStatistic(score.MaxCombo, score.Statistics[HitResult.Miss] == 0),
|
||||
new ComboStatistic(score.MaxCombo, !score.Statistics.TryGetValue(HitResult.Miss, out var missCount) || missCount == 0),
|
||||
new CounterStatistic("pp", (int)(score.PP ?? 0)),
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user