diff options
Diffstat (limited to '')
-rw-r--r-- | gui/text.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gui/text.cpp b/gui/text.cpp index 61940ff9f..123b2499d 100644 --- a/gui/text.cpp +++ b/gui/text.cpp @@ -64,7 +64,7 @@ GUIText::GUIText(xml_node<>* node) // Load the font, and possibly override the color mFont = LoadAttrFont(FindNode(node, "font"), "resource"); - if (!mFont) + if (!mFont || !mFont->GetResource()) return; mColor = LoadAttrColor(FindNode(node, "font"), "color", mColor); mHighlightColor = LoadAttrColor(FindNode(node, "font"), "highlightcolor", mColor); |