diff options
author | peter1138 <peter1138@openttd.org> | 2007-04-15 16:20:35 +0000 |
---|---|---|
committer | peter1138 <peter1138@openttd.org> | 2007-04-15 16:20:35 +0000 |
commit | 49eb9b6fad9723f14a4f1652f74310e10efe5681 (patch) | |
tree | 5884ce2fe37e3c33edb6f96aff3b276532e6832e /src/station_cmd.cpp | |
parent | 24e95eb2cd4da1cf86f5d38c17b9fcbd38557e54 (diff) | |
download | openttd-49eb9b6fad9723f14a4f1652f74310e10efe5681.tar.xz |
(svn r9638) -Feature: Increase cargo types from 12 to 32 and enable newcargo flag in NewGRF loader.
Diffstat (limited to 'src/station_cmd.cpp')
-rw-r--r-- | src/station_cmd.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/station_cmd.cpp b/src/station_cmd.cpp index 91d3aae16..eaf0db70d 100644 --- a/src/station_cmd.cpp +++ b/src/station_cmd.cpp @@ -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); } |