mirror of https://github.com/ppy/osu
Fix stack overflow in ruleset change rejection logic
This commit is contained in:
parent
0b8ca667a9
commit
46c72334fb
|
@ -479,7 +479,7 @@ private void onRulesetChanged(ValueChangedEvent<RulesetInfo> r)
|
|||
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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue