mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2026-01-23 14:54:30 +01:00
Remove use of gCurrentLanguage
This commit is contained in:
@@ -148,7 +148,8 @@ static bool LoadCustomConfigFont(LocalisationService& localisationService)
|
||||
void TryLoadFonts(LocalisationService& localisationService)
|
||||
{
|
||||
#ifndef NO_TTF
|
||||
TTFontFamily const * fontFamily = LanguagesDescriptors[gCurrentLanguage].font_family;
|
||||
auto currentLanguage = localisationService.GetCurrentLanguage();
|
||||
TTFontFamily const * fontFamily = LanguagesDescriptors[currentLanguage].font_family;
|
||||
|
||||
if (fontFamily != FAMILY_OPENRCT2_SPRITE)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user