Do not try to set ruleset from beatmap if it's a dummy

This commit is contained in:
Bartłomiej Dach
2022-06-19 20:08:39 +02:00
parent 93b3ede2a0
commit 3ab8158b92

View File

@ -65,6 +65,7 @@ namespace osu.Game.Screens.Edit
base.LoadComplete(); base.LoadComplete();
// will be restored via lease, see `DisallowExternalBeatmapRulesetChanges`. // will be restored via lease, see `DisallowExternalBeatmapRulesetChanges`.
if (!(Beatmap.Value is DummyWorkingBeatmap))
Ruleset.Value = Beatmap.Value.BeatmapInfo.Ruleset; Ruleset.Value = Beatmap.Value.BeatmapInfo.Ruleset;
Mods.Value = Array.Empty<Mod>(); Mods.Value = Array.Empty<Mod>();
} }