1
0
mirror of https://github.com/ppy/osu.git synced 2024-09-21 18:47:27 +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.
using System.Collections.Generic;
using System.Diagnostics;
using System.IO;
using System.Linq;
using Newtonsoft.Json;
@ -48,11 +49,10 @@ namespace osu.Game.Tournament.Screens.Editors
using (var sr = new StreamReader(stream))
countries = JsonConvert.DeserializeObject<List<TournamentTeam>>(sr.ReadToEnd());
if (countries != null)
{
foreach (var c in countries)
Storage.Add(c);
}
Debug.Assert(countries != null);
foreach (var c in countries)
Storage.Add(c);
}
public class TeamRow : CompositeDrawable, IModelBacked<TournamentTeam>