Fix 3de8853e29: Industries accept/produce no cargo for pre-SLV_78 saves. (#12508)

Industry accepted/produced was trimmed too early for original and pre-SLV_78 saves, as cargo type was not stored per slot so all slots look invalid to the trim function.
This commit is contained in:
Peter Nelson
2024-04-20 10:24:35 +01:00
committed by GitHub
parent 1c31e4b68c
commit 699c7e4c9d
3 changed files with 8 additions and 2 deletions
-1
View File
@@ -266,7 +266,6 @@ struct INDYChunkHandler : ChunkHandler {
LoadMoveAcceptsProduced(i, INDUSTRY_NUM_INPUTS, INDUSTRY_NUM_OUTPUTS);
}
Industry::IncIndustryTypeCount(i->type);
TrimIndustryAcceptedProduced(i);
}
}