mirror of https://github.com/ppy/osu
Better handle startup when ladder cannot be read correctly
This commit is contained in:
parent
08756186e9
commit
a2273234cb
|
@ -121,10 +121,9 @@ private void readBracket()
|
|||
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