fixed logic.
This commit is contained in:
parent
52d5220a30
commit
ec53e887ee
@ -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>
|
/// <returns>The region corresponding to the name or null if the requested region doesn't exist.</returns>
|
||||||
public virtual TextureAtlas.Region GetTextureAtlasRegion(string name)
|
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];
|
return textureAtlas[name];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user