Ensure ruleset and mods are set correctly when leaving MatchSongSelect

This commit is contained in:
Jamie Taylor 2019-02-27 16:16:13 +09:00
parent 7c2ffb1826
commit a3f71d69a9
No known key found for this signature in database
GPG Key ID: 2ACFA8B6370B8C8C

View File

@ -56,6 +56,10 @@ namespace osu.Game.Screens.Select
return true;
Beatmap.Value = beatmaps.GetWorkingBeatmap(CurrentItem.Value?.Beatmap);
Ruleset.Value = CurrentItem.Value?.Ruleset;
CurrentItem.Value?.RequiredMods.Clear();
CurrentItem.Value?.RequiredMods.AddRange(SelectedMods.Value);
Beatmap.Disabled = true;
Ruleset.Disabled = true;