1
0
mirror of https://github.com/ppy/osu.git synced 2026-05-19 07:09:11 +08:00

Fix stack overflow in ruleset change rejection logic

This commit is contained in:
Dean Herbert
2021-07-30 01:54:30 +09:00
Unverified
parent 0b8ca667a9
commit 46c72334fb
+1 -1
View File
@@ -479,7 +479,7 @@ namespace osu.Game
if (r.NewValue?.Available != true)
{
// reject the change if the ruleset is not available.
Ruleset.Value = r.OldValue;
Ruleset.Value = r.OldValue?.Available == true ? r.OldValue : RulesetStore.AvailableRulesets.First();
return;
}