diff --git a/rpcs3/Emu/RSX/Overlays/overlay_fonts.cpp b/rpcs3/Emu/RSX/Overlays/overlay_fonts.cpp index e8305ef9b1..572cb71134 100644 --- a/rpcs3/Emu/RSX/Overlays/overlay_fonts.cpp +++ b/rpcs3/Emu/RSX/Overlays/overlay_fonts.cpp @@ -185,9 +185,10 @@ namespace rsx // Check if the character exists in the font stbtt_fontinfo info; - stbtt_InitFont(&info, bytes.data(), stbtt_GetFontOffsetForIndex(bytes.data(), 0)); - - font_found = stbtt_FindGlyphIndex(&info, c) != 0; + if (stbtt_InitFont(&info, bytes.data(), stbtt_GetFontOffsetForIndex(bytes.data(), 0)) != 0) + { + font_found = stbtt_FindGlyphIndex(&info, c) != 0; + } if (!font_found) {