Fix tournament client crashing due to null ruleset

This commit is contained in:
Dean Herbert 2019-11-29 01:01:25 +09:00
parent aee32a4ebe
commit 14277d714e

View File

@ -129,6 +129,9 @@ namespace osu.Game.Tournament
ladder = new LadderInfo();
}
if (ladder.Ruleset.Value == null)
ladder.Ruleset.Value = RulesetStore.AvailableRulesets.First();
Ruleset.BindTo(ladder.Ruleset);
dependencies.Cache(ladder);