diff --git a/RecrownedAthenaeum/UI/SkinSystem/Skin.cs b/RecrownedAthenaeum/UI/SkinSystem/Skin.cs index af27331..029e250 100644 --- a/RecrownedAthenaeum/UI/SkinSystem/Skin.cs +++ b/RecrownedAthenaeum/UI/SkinSystem/Skin.cs @@ -44,13 +44,13 @@ namespace RecrownedAthenaeum.UI.SkinSystem } /// - /// Returns a with given name of region. + /// Returns a with given name of region. Null values acceptable. Will return null if parameter is null. /// /// Name of region. /// The region corresponding to the name or null if the requested region doesn't exist. public virtual TextureAtlas.Region GetTextureAtlasRegion(string name) { - if (!textureAtlas.ContainsRegion(name)) return null; + if (name != null || !textureAtlas.ContainsRegion(name)) return null; return textureAtlas[name]; }