From 63d44285274b1f69f6182fbe10b91d653d3221f1 Mon Sep 17 00:00:00 2001 From: Anuken Date: Wed, 18 Nov 2020 18:29:31 -0500 Subject: [PATCH] Fixed #3453 --- core/src/mindustry/ui/Fonts.java | 1 + 1 file changed, 1 insertion(+) diff --git a/core/src/mindustry/ui/Fonts.java b/core/src/mindustry/ui/Fonts.java index 2fed1990d9..ee79f301ef 100644 --- a/core/src/mindustry/ui/Fonts.java +++ b/core/src/mindustry/ui/Fonts.java @@ -95,6 +95,7 @@ public class Fonts{ var region = new TextureRegion(); int code = Iconc.codes.get(name, '\uF8D4'); var glyph = iconLarge.getData().getGlyph((char)code); + if(glyph == null) return Core.atlas.find("error"); region.set(iconLarge.getRegion().texture); region.set(glyph.u, glyph.v2, glyph.u2, glyph.v); return region;