Codechange: use std::string instead of stredup for saveload error messages
This commit is contained in:
@@ -623,7 +623,7 @@ int openttd_main(int argc, char *argv[])
|
||||
if (_load_check_data.HasErrors()) {
|
||||
InitializeLanguagePacks(); // A language pack is needed for GetString()
|
||||
char buf[256];
|
||||
SetDParamStr(0, _load_check_data.error_data);
|
||||
SetDParamStr(0, _load_check_data.error_msg);
|
||||
GetString(buf, _load_check_data.error, lastof(buf));
|
||||
fprintf(stderr, "%s\n", buf);
|
||||
}
|
||||
|
Reference in New Issue
Block a user