1
0
mirror of https://github.com/ppy/osu.git synced 2024-11-06 10:47:28 +08:00

Ensure AvailableMods.Value is never null

This commit is contained in:
Bartłomiej Dach 2022-06-15 17:39:30 +02:00
parent 6ee1c35c8f
commit 1acbb87aa6
No known key found for this signature in database
GPG Key ID: BCECCD4FA41F6497

View File

@ -159,7 +159,7 @@ namespace osu.Game
/// <summary> /// <summary>
/// Mods available for the current <see cref="Ruleset"/>. /// Mods available for the current <see cref="Ruleset"/>.
/// </summary> /// </summary>
public readonly Bindable<Dictionary<ModType, IReadOnlyList<Mod>>> AvailableMods = new Bindable<Dictionary<ModType, IReadOnlyList<Mod>>>(); public readonly Bindable<Dictionary<ModType, IReadOnlyList<Mod>>> AvailableMods = new Bindable<Dictionary<ModType, IReadOnlyList<Mod>>>(new Dictionary<ModType, IReadOnlyList<Mod>>());
private BeatmapDifficultyCache difficultyCache; private BeatmapDifficultyCache difficultyCache;