mirror of
https://github.com/ppy/osu.git
synced 2024-12-17 03:43:52 +08:00
Merge pull request #1165 from peppy/move-screen-restrictions
Fix backwards conditional causing crash at song select
This commit is contained in:
commit
236a9ea728
@ -361,7 +361,7 @@ namespace osu.Game
|
|||||||
|
|
||||||
// we only want to apply these restrictions when we are inside a screen stack.
|
// 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.
|
// the use case for not applying is in visual/unit tests.
|
||||||
bool applyRestrictions = currentScreen?.AllowBeatmapRulesetChange ?? false;
|
bool applyRestrictions = !currentScreen?.AllowBeatmapRulesetChange ?? false;
|
||||||
|
|
||||||
Ruleset.Disabled = applyRestrictions;
|
Ruleset.Disabled = applyRestrictions;
|
||||||
Beatmap.Disabled = applyRestrictions;
|
Beatmap.Disabled = applyRestrictions;
|
||||||
|
Loading…
Reference in New Issue
Block a user