(svn r23829) -Fix [FS#4996]: Loading empty GS strings/translations failed.

This commit is contained in:
frosch 2012-01-21 13:21:33 +00:00
parent 5fa15c563c
commit d5e0be7d7f

View File

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