mirror of
https://github.com/osukey/osukey.git
synced 2025-08-03 06:36:31 +09:00
Fix potentially adding null skin sources
This commit is contained in:
@ -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>
|
||||
|
Reference in New Issue
Block a user