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:
parent
08756186e9
commit
a2273234cb
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user