summaryrefslogtreecommitdiffstats
path: root/gui/textbox.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'gui/textbox.cpp')
-rw-r--r--gui/textbox.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/gui/textbox.cpp b/gui/textbox.cpp
index 2c7d09f99..824daf327 100644
--- a/gui/textbox.cpp
+++ b/gui/textbox.cpp
@@ -81,6 +81,9 @@ size_t GUITextBox::GetItemCount()
void GUITextBox::RenderItem(size_t itemindex, int yPos, bool selected __unused)
{
+ if (!mFont || !mFont->GetResource())
+ return;
+
// Set the color for the font
gr_color(mFontColor.red, mFontColor.green, mFontColor.blue, mFontColor.alpha);