diff --git a/src/common/fonts/v_font.cpp b/src/common/fonts/v_font.cpp index 28af852028..3c9823abea 100644 --- a/src/common/fonts/v_font.cpp +++ b/src/common/fonts/v_font.cpp @@ -92,6 +92,7 @@ TArray TranslationColors; FFont *V_GetFont(const char *name, const char *fontlumpname) { + if (name != nullptr) return nullptr; if (!stricmp(name, "DBIGFONT")) name = "BigFont"; else if (!stricmp(name, "CONFONT")) name = "ConsoleFont"; // several mods have used the name CONFONT directly and effectively duplicated the font. else if (!stricmp(name, "INDEXFON")) name = "IndexFont"; // Same here - for whatever reason some people had to use its 8 character name...