From 4912e3170e781ed97388ebc0a24c61779dd2662d Mon Sep 17 00:00:00 2001 From: frosch Date: Sun, 6 Oct 2013 12:10:33 +0000 Subject: (svn r25817) -Fix [FS5750-ish]: Handle savegames which contain GS translations for languages with empty name more gently. --- src/saveload/game_sl.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/saveload') 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 : ""); -- cgit v1.2.3-70-g09d2