summaryrefslogtreecommitdiff
path: root/Runtime/GUI/UITextMesh.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Runtime/GUI/UITextMesh.cpp')
-rw-r--r--Runtime/GUI/UITextMesh.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/Runtime/GUI/UITextMesh.cpp b/Runtime/GUI/UITextMesh.cpp
index 6a10f88..32dec3b 100644
--- a/Runtime/GUI/UITextMesh.cpp
+++ b/Runtime/GUI/UITextMesh.cpp
@@ -71,6 +71,8 @@ UITextMesh::UITextMesh(const UnicodeString& str, Font* font,int pixelSize, EText
{
character::Codepoint c = str.str[i];
const Character* ch = font->GetCharacter(c, pixelSize);
+ if (ch == NULL)
+ continue;
unsigned int atlasIndex = ch->atlas;
TextInfo info;