Changeset - r18791:b546d3612dd0
[Not reviewed]
master
0 1 0
truebrain - 12 years ago 2011-12-21 12:40:29
truebrain@openttd.org
(svn r23649) -Fix [FS#4905) (r23634): loading a savegame with an empty GSTR chunk caused assert
1 file changed with 7 insertions and 0 deletions:
0 comments (0 inline, 0 general)
src/saveload/game_sl.cpp
Show inline comments
 
@@ -158,6 +158,13 @@ static void Load_GSTR()
 
		*_current_data->raw_strings.Append() = ls;
 
	}
 

	
 
	/* If there were no strings in the savegame, set GameStrings to NULL */
 
	if (_current_data->raw_strings.Length() == 0) {
 
		delete _current_data;
 
		_current_data = NULL;
 
		return;
 
	}
 

	
 
	_current_data->Compile();
 
	ReconsiderGameScriptLanguage();
 
}
0 comments (0 inline, 0 general)