mirror of
https://github.com/ppy/osu
synced 2025-01-02 20:32:10 +00:00
Fix potentially adding null skin sources
This commit is contained in:
parent
fbb856d84b
commit
f20146d446
@ -51,10 +51,11 @@ namespace osu.Game.Skinning
|
||||
/// <summary>
|
||||
/// Constructs a new <see cref="SkinProvidingContainer"/> initialised with a single skin source.
|
||||
/// </summary>
|
||||
public SkinProvidingContainer(ISkin skin)
|
||||
public SkinProvidingContainer([CanBeNull] ISkin skin)
|
||||
: this()
|
||||
{
|
||||
SkinSources.Add(skin);
|
||||
if (skin != null)
|
||||
SkinSources.Add(skin);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
Loading…
Reference in New Issue
Block a user