mirror of
https://github.com/ppy/osu.git
synced 2025-01-12 15:22:55 +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.
|
||||
|
||||
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>
|
||||
|
Loading…
Reference in New Issue
Block a user