From 2e984db135d9879f000b45b72872c188341a61c4 Mon Sep 17 00:00:00 2001 From: Recrown Date: Tue, 29 Jan 2019 15:59:35 -0600 Subject: [PATCH] previous commit didn't contain actual update file, so its apart of this commit. --- RecrownedAthenaeum/UI/SkinSystem/Skin.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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]; }