From ec53e887ee6802ef24e75541edbb58e0e5772e40 Mon Sep 17 00:00:00 2001 From: Recrown Date: Tue, 29 Jan 2019 16:27:04 -0600 Subject: [PATCH] fixed logic. --- RecrownedAthenaeum/UI/SkinSystem/Skin.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/RecrownedAthenaeum/UI/SkinSystem/Skin.cs b/RecrownedAthenaeum/UI/SkinSystem/Skin.cs index 6e2a464..d42d8f0 100644 --- a/RecrownedAthenaeum/UI/SkinSystem/Skin.cs +++ b/RecrownedAthenaeum/UI/SkinSystem/Skin.cs @@ -50,7 +50,7 @@ namespace RecrownedAthenaeum.UI.SkinSystem /// The region corresponding to the name or null if the requested region doesn't exist. public virtual TextureAtlas.Region GetTextureAtlasRegion(string name) { - if (name != null || !textureAtlas.ContainsRegion(name)) return null; + if (name == null || !textureAtlas.ContainsRegion(name)) return null; return textureAtlas[name]; }