mirror of
https://github.com/osukey/osukey.git
synced 2025-08-08 09:03:50 +09:00
Fix potentially adding null skin sources
This commit is contained in:
@ -51,9 +51,10 @@ namespace osu.Game.Skinning
|
|||||||
/// <summary>
|
/// <summary>
|
||||||
/// Constructs a new <see cref="SkinProvidingContainer"/> initialised with a single skin source.
|
/// Constructs a new <see cref="SkinProvidingContainer"/> initialised with a single skin source.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public SkinProvidingContainer(ISkin skin)
|
public SkinProvidingContainer([CanBeNull] ISkin skin)
|
||||||
: this()
|
: this()
|
||||||
{
|
{
|
||||||
|
if (skin != null)
|
||||||
SkinSources.Add(skin);
|
SkinSources.Add(skin);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user