mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-02-10 00:11:31 +00:00
(svn r23649) -Fix [FS#4905) (r23634): loading a savegame with an empty GSTR chunk caused assert
This commit is contained in:
parent
e1f04b89c3
commit
5f7268cbdc
@ -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();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user