1
0
Fork 0

Fix 433f74e: GetString() requires a language pack

pull/9446/head
glx22 2021-07-16 18:10:43 +02:00 committed by Loïc Guilloux
parent 96add9c36d
commit afea5e85ae
1 changed files with 1 additions and 0 deletions

View File

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