From afea5e85aeff20077161cc37500755e9ee9a6b14 Mon Sep 17 00:00:00 2001 From: glx22 Date: Fri, 16 Jul 2021 18:10:43 +0200 Subject: Fix 433f74e: GetString() requires a language pack --- src/openttd.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'src') diff --git a/src/openttd.cpp b/src/openttd.cpp index 904cdbbb1..711df58c4 100644 --- a/src/openttd.cpp +++ b/src/openttd.cpp @@ -626,6 +626,7 @@ int openttd_main(int argc, char *argv[]) if (res != SL_OK || _load_check_data.HasErrors()) { fprintf(stderr, "Failed to open savegame\n"); if (_load_check_data.HasErrors()) { + InitializeLanguagePacks(); // A language pack is needed for GetString() char buf[256]; SetDParamStr(0, _load_check_data.error_data); GetString(buf, _load_check_data.error, lastof(buf)); -- cgit v1.2.3-70-g09d2