diff options
Diffstat (limited to 'src/text.cpp')
-rw-r--r-- | src/text.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/text.cpp b/src/text.cpp index a2cd492c2..205e945ac 100644 --- a/src/text.cpp +++ b/src/text.cpp @@ -43,7 +43,7 @@ Text::Text(const std::string &text, const int x, const int y, const gcn::Graphics::Alignment alignment, const gcn::Color* color, const bool isSpeech, gcn::Font *const font) : - mFont(font ? font : gui->getFont()), + mFont(font ? font : (gui ? gui->getFont() : nullptr)), mX(x), mY(y), mWidth(mFont->getWidth(text)), |