1
0
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:
Dean Herbert 2020-03-18 15:49:24 +09:00
parent 44cfed8af1
commit fdcb60706b

View File

@ -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)),
};