1
0
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:
smoogipoo 2021-03-30 09:03:32 +09:00
parent 804ffe9f48
commit 69db0a5593

View File

@ -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>