diff options
author | frosch <frosch@openttd.org> | 2013-10-06 12:10:33 +0000 |
---|---|---|
committer | frosch <frosch@openttd.org> | 2013-10-06 12:10:33 +0000 |
commit | 4912e3170e781ed97388ebc0a24c61779dd2662d (patch) | |
tree | 635d1d295412d65ccea0969f335b0419bc2f334c | |
parent | dfa0e61f254eb1bdcfbc932ec2c6c38443f79c65 (diff) | |
download | openttd-4912e3170e781ed97388ebc0a24c61779dd2662d.tar.xz |
(svn r25817) -Fix [FS5750-ish]: Handle savegames which contain GS translations for languages with empty name more gently.
-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 d5a454f48..b2b263b13 100644 --- a/src/saveload/game_sl.cpp +++ b/src/saveload/game_sl.cpp @@ -148,7 +148,7 @@ static void Load_GSTR() _game_saveload_string = NULL; SlObject(NULL, _game_language_header); - LanguageStrings *ls = new LanguageStrings(_game_saveload_string); + LanguageStrings *ls = new LanguageStrings(_game_saveload_string != NULL ? _game_saveload_string : ""); for (uint i = 0; i < _game_saveload_strings; i++) { SlObject(NULL, _game_language_string); *ls->lines.Append() = strdup(_game_saveload_string != NULL ? _game_saveload_string : ""); |