mirror of
https://github.com/ppy/osu.git
synced 2025-01-12 21:02:54 +08:00
The TextureStore in Country.cs can noit be null.
This commit is contained in:
parent
e417eceb98
commit
d5b275fa53
@ -1,6 +1,7 @@
|
||||
// Copyright (c) 2007-2017 ppy Pty Ltd <contact@ppy.sh>.
|
||||
// Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE
|
||||
|
||||
using System;
|
||||
using Newtonsoft.Json;
|
||||
using osu.Framework.Allocation;
|
||||
using osu.Framework.Graphics;
|
||||
@ -45,6 +46,9 @@ namespace osu.Game.Users
|
||||
[BackgroundDependencyLoader]
|
||||
private void load(TextureStore ts)
|
||||
{
|
||||
if (ts == null)
|
||||
throw new ArgumentNullException(nameof(ts));
|
||||
|
||||
textures = ts;
|
||||
sprite.Texture = textures.Get($@"Flags/{flagName}");
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user