mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-08-28 00:49:11 +00:00
Fix 433f74e
: GetString() requires a language pack
This commit is contained in:
@@ -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));
|
||||
|
Reference in New Issue
Block a user