mirror of
https://github.com/ppy/osu.git
synced 2024-11-11 15:47:26 +08:00
Simplify dictionary construction
This commit is contained in:
parent
5e8d75bbbf
commit
6e41efede8
@ -95,9 +95,9 @@ namespace osu.Game.Rulesets.Scoring
|
|||||||
get
|
get
|
||||||
{
|
{
|
||||||
if (!beatmapApplied)
|
if (!beatmapApplied)
|
||||||
throw new InvalidOperationException($"Cannot access maximum scoring values before calling {nameof(ApplyBeatmap)}.");
|
throw new InvalidOperationException($"Cannot access maximum statistics before calling {nameof(ApplyBeatmap)}.");
|
||||||
|
|
||||||
return maximumResultCounts.ToDictionary(kvp => kvp.Key, kvp => kvp.Value);
|
return new Dictionary<HitResult, int>(maximumResultCounts);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user