mirror of
https://github.com/JGRennison/OpenTTD-patches.git
synced 2024-11-08 01:10:28 +00:00
(svn r23829) -Fix [FS#4996]: Loading empty GS strings/translations failed.
This commit is contained in:
parent
5fa15c563c
commit
d5e0be7d7f
@ -151,7 +151,7 @@ static void Load_GSTR()
|
||||
LanguageStrings *ls = new LanguageStrings(_game_saveload_string);
|
||||
for (uint i = 0; i < _game_saveload_strings; i++) {
|
||||
SlObject(NULL, _game_language_string);
|
||||
*ls->lines.Append() = strdup(_game_saveload_string);
|
||||
*ls->lines.Append() = strdup(_game_saveload_string != NULL ? _game_saveload_string : "");
|
||||
}
|
||||
|
||||
*_current_data->raw_strings.Append() = ls;
|
||||
|
Loading…
Reference in New Issue
Block a user