Fix error when entering multiplayer game in different ruleset (#7191)

Fix error when entering multiplayer game in different ruleset
This commit is contained in:
Dean Herbert 2019-12-14 01:14:23 +09:00 committed by GitHub
commit e96723434c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -249,7 +249,8 @@ namespace osu.Game
foreach (ModType type in Enum.GetValues(typeof(ModType)))
dict[type] = r.NewValue?.CreateInstance().GetModsFor(type).ToList();
SelectedMods.Value = Array.Empty<Mod>();
if (!SelectedMods.Disabled)
SelectedMods.Value = Array.Empty<Mod>();
AvailableMods.Value = dict;
}