mirror of
https://github.com/ppy/osu.git
synced 2026-06-08 04:24:10 +08: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