1
0
mirror of https://github.com/ppy/osu.git synced 2026-06-01 21:00:33 +08:00

Fix backwards conditional

This commit is contained in:
Dean Herbert
2017-08-22 17:21:19 +09:00
Unverified
parent 841805f8f0
commit 8f32fd28c9
+1 -1
View File
@@ -361,7 +361,7 @@ namespace osu.Game
// we only want to apply these restrictions when we are inside a screen stack.
// the use case for not applying is in visual/unit tests.
bool applyRestrictions = currentScreen?.AllowBeatmapRulesetChange ?? false;
bool applyRestrictions = !currentScreen?.AllowBeatmapRulesetChange ?? false;
Ruleset.Disabled = applyRestrictions;
Beatmap.Disabled = applyRestrictions;