diff options
author | peter1138 <peter1138@openttd.org> | 2008-01-04 17:25:53 +0000 |
---|---|---|
committer | peter1138 <peter1138@openttd.org> | 2008-01-04 17:25:53 +0000 |
commit | 89fa5dc1429b02a78c94f49725e34eb3e493c906 (patch) | |
tree | 8157fc7cf7ad8566d8a2b0c35c903ec629fd0e28 /src/cargotype.cpp | |
parent | a021159e4eb8d2dee7ee9eb49593fb6c4dd5acf3 (diff) | |
download | openttd-89fa5dc1429b02a78c94f49725e34eb3e493c906.tar.xz |
(svn r11758) -Fix(ette): Populate 'void' cargo slots (unused slots in temperate and arctic) with default data as per pre-newcargo support. These slots are still disabled by default, but some NewGRFs (erroneously?) expect the default data.
Diffstat (limited to 'src/cargotype.cpp')
-rw-r--r-- | src/cargotype.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cargotype.cpp b/src/cargotype.cpp index 6a880b93b..0d3bcd827 100644 --- a/src/cargotype.cpp +++ b/src/cargotype.cpp @@ -37,7 +37,7 @@ void SetupCargoForClimate(LandscapeID l) if (cl < lengthof(_default_cargo)) { /* Copy the indexed cargo */ _cargo[i] = _default_cargo[cl]; - SetBit(_cargo_mask, i); + if (_cargo[i].bitnum != INVALID_CARGO) SetBit(_cargo_mask, i); continue; } |