fixed logic.

This commit is contained in:
Harrison Deng 2019-01-29 16:27:04 -06:00
parent 52d5220a30
commit ec53e887ee

View File

@ -50,7 +50,7 @@ namespace RecrownedAthenaeum.UI.SkinSystem
/// <returns>The region corresponding to the name or null if the requested region doesn't exist.</returns>
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];
}