mirror of
https://github.com/ppy/osu.git
synced 2025-01-26 16:12:54 +08:00
Countries should not be null (internal game resource)
This commit is contained in:
parent
804ffe9f48
commit
69db0a5593
@ -2,6 +2,7 @@
|
|||||||
// See the LICENCE file in the repository root for full licence text.
|
// See the LICENCE file in the repository root for full licence text.
|
||||||
|
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
|
using System.Diagnostics;
|
||||||
using System.IO;
|
using System.IO;
|
||||||
using System.Linq;
|
using System.Linq;
|
||||||
using Newtonsoft.Json;
|
using Newtonsoft.Json;
|
||||||
@ -48,11 +49,10 @@ namespace osu.Game.Tournament.Screens.Editors
|
|||||||
using (var sr = new StreamReader(stream))
|
using (var sr = new StreamReader(stream))
|
||||||
countries = JsonConvert.DeserializeObject<List<TournamentTeam>>(sr.ReadToEnd());
|
countries = JsonConvert.DeserializeObject<List<TournamentTeam>>(sr.ReadToEnd());
|
||||||
|
|
||||||
if (countries != null)
|
Debug.Assert(countries != null);
|
||||||
{
|
|
||||||
foreach (var c in countries)
|
foreach (var c in countries)
|
||||||
Storage.Add(c);
|
Storage.Add(c);
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public class TeamRow : CompositeDrawable, IModelBacked<TournamentTeam>
|
public class TeamRow : CompositeDrawable, IModelBacked<TournamentTeam>
|
||||||
|
Loading…
Reference in New Issue
Block a user