(svn r23649) -Fix [FS#4905) (r23634): loading a savegame with an empty GSTR chunk caused assert

pull/155/head
truebrain 13 years ago
parent 8faa8f2342
commit d64d053156

@ -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…
Cancel
Save