Add protection against rulesets returning null mods

This commit is contained in:
Bartłomiej Dach
2022-06-15 16:18:56 +02:00
parent 0418d70056
commit 6e5e506fb4

View File

@ -519,7 +519,9 @@ namespace osu.Game
foreach (ModType type in Enum.GetValues(typeof(ModType)))
{
dict[type] = instance.GetModsFor(type).ToList();
dict[type] = instance.GetModsFor(type)
.Where(mod => mod != null)
.ToList();
}
if (!SelectedMods.Disabled)