Fix stack overflow in ruleset change rejection logic

This commit is contained in:
Dean Herbert 2021-07-30 01:54:30 +09:00
parent 0b8ca667a9
commit 46c72334fb
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}