diff options
author | frosch <frosch@openttd.org> | 2012-01-21 13:21:33 +0000 |
---|---|---|
committer | frosch <frosch@openttd.org> | 2012-01-21 13:21:33 +0000 |
commit | d5e0be7d7fc5a0ad763f633c2b849547321c7081 (patch) | |
tree | 6689b47ab9048dbbbc8bd78fabb4c36b724424d2 /src/saveload | |
parent | 5fa15c563cde6bfdc97233f48817fcdd7c200b70 (diff) | |
download | openttd-d5e0be7d7fc5a0ad763f633c2b849547321c7081.tar.xz |
(svn r23829) -Fix [FS#4996]: Loading empty GS strings/translations failed.
Diffstat (limited to 'src/saveload')
-rw-r--r-- | src/saveload/game_sl.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/saveload/game_sl.cpp b/src/saveload/game_sl.cpp index 55414cc31..d5a454f48 100644 --- a/src/saveload/game_sl.cpp +++ b/src/saveload/game_sl.cpp @@ -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; |