summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorfrosch <frosch@openttd.org>2012-01-21 13:21:33 +0000
committerfrosch <frosch@openttd.org>2012-01-21 13:21:33 +0000
commitd5e0be7d7fc5a0ad763f633c2b849547321c7081 (patch)
tree6689b47ab9048dbbbc8bd78fabb4c36b724424d2 /src
parent5fa15c563cde6bfdc97233f48817fcdd7c200b70 (diff)
downloadopenttd-d5e0be7d7fc5a0ad763f633c2b849547321c7081.tar.xz
(svn r23829) -Fix [FS#4996]: Loading empty GS strings/translations failed.
Diffstat (limited to 'src')
-rw-r--r--src/saveload/game_sl.cpp2
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;