- fixed crash when checking the extended character list for the current language.

For English this will be null because it got no extended characters.
This commit is contained in:
Christoph Oelckers 2023-04-03 17:03:44 +02:00
parent 15465f0785
commit 25c984ff6e

View file

@ -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;