diff options
author | glx22 <glx@openttd.org> | 2021-07-16 18:10:43 +0200 |
---|---|---|
committer | Loïc Guilloux <glx22@users.noreply.github.com> | 2021-07-16 23:01:08 +0200 |
commit | afea5e85aeff20077161cc37500755e9ee9a6b14 (patch) | |
tree | 3acb76d2d0a519aef492fc642377b0fe2d5fe0d4 | |
parent | 96add9c36d0b5e578fe926d98ae35e8f14d5ec9e (diff) | |
download | openttd-afea5e85aeff20077161cc37500755e9ee9a6b14.tar.xz |
Fix 433f74e: GetString() requires a language pack
-rw-r--r-- | src/openttd.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
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)); |