Saveload: Fix NGRF chunks being saved with incorrect table SL_ARR format
Array length prefix was missing See also: https://github.com/OpenTTD/bananas-api/pull/456
This commit is contained in:
@@ -104,6 +104,9 @@ static void Save_NGRF()
|
||||
|
||||
static void Load_NGRF_common(GRFConfig *&grfconfig)
|
||||
{
|
||||
if (SlXvIsFeaturePresent(XSLFI_TABLE_NEWGRF_SL, 1, 1)) {
|
||||
SlLoadTableWithArrayLengthPrefixesMissing();
|
||||
}
|
||||
std::vector<SaveLoad> sld = SlTableHeaderOrRiff(_grfconfig_desc);
|
||||
ClearGRFConfigList(&grfconfig);
|
||||
while (SlIterateArray() != -1) {
|
||||
|
||||
Reference in New Issue
Block a user