forked from mirror/OpenTTD
(svn r9638) -Feature: Increase cargo types from 12 to 32 and enable newcargo flag in NewGRF loader.
This commit is contained in:
@@ -2820,7 +2820,9 @@ static const SaveLoad _station_speclist_desc[] = {
|
||||
static void SaveLoad_STNS(Station *st)
|
||||
{
|
||||
SlObject(st, _station_desc);
|
||||
for (CargoID i = 0; i < NUM_CARGO; i++) {
|
||||
|
||||
uint num_cargo = CheckSavegameVersion(55) ? 12 : NUM_CARGO;
|
||||
for (CargoID i = 0; i < num_cargo; i++) {
|
||||
SlObject(&st->goods[i], _goods_desc);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user