From 25c984ff6e52d28d5a751da1dd1cf17d12281967 Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Mon, 3 Apr 2023 17:03:44 +0200 Subject: [PATCH] - fixed crash when checking the extended character list for the current language. For English this will be null because it got no extended characters. --- src/common/fonts/v_text.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/common/fonts/v_text.cpp b/src/common/fonts/v_text.cpp index 164d9086d..7fd9bfb53 100644 --- a/src/common/fonts/v_text.cpp +++ b/src/common/fonts/v_text.cpp @@ -312,7 +312,7 @@ void UpdateGenericUI(bool cvar) } // Turkish i crap. What a mess, just to save two code points... :( switchstr = GStrings["REQUIRED_CHARACTERS"]; - special_i = strstr(switchstr, "\xc4\xb0") != nullptr; // capital dotted i (İ). + special_i = switchstr && strstr(switchstr, "\xc4\xb0") != nullptr; // capital dotted i (İ). if (special_i) { upperforlower['i'] = 0x130;