1
0
mirror of https://github.com/ppy/osu.git synced 2024-11-11 10:33:30 +08:00

Better handle startup when ladder cannot be read correctly

This commit is contained in:
Dean Herbert 2020-03-03 18:09:25 +09:00
parent 08756186e9
commit a2273234cb

View File

@ -121,10 +121,9 @@ namespace osu.Game.Tournament
using (var sr = new StreamReader(stream))
ladder = JsonConvert.DeserializeObject<LadderInfo>(sr.ReadToEnd());
}
else
{
if (ladder == null)
ladder = new LadderInfo();
}
if (ladder.Ruleset.Value == null)
ladder.Ruleset.Value = RulesetStore.AvailableRulesets.First();