mirror of
https://github.com/ppy/osu.git
synced 2025-01-13 13:32:54 +08:00
Fix stack overflow in ruleset change rejection logic
This commit is contained in:
parent
0b8ca667a9
commit
46c72334fb
@ -479,7 +479,7 @@ namespace osu.Game
|
|||||||
if (r.NewValue?.Available != true)
|
if (r.NewValue?.Available != true)
|
||||||
{
|
{
|
||||||
// reject the change if the ruleset is not available.
|
// 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;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user