summaryrefslogtreecommitdiff
path: root/src/cargotype.cpp
diff options
context:
space:
mode:
authorpeter1138 <peter1138@openttd.org>2008-01-04 17:25:53 +0000
committerpeter1138 <peter1138@openttd.org>2008-01-04 17:25:53 +0000
commit6a1306793108d0ebd51c8d79b8bb8cecd77a6ef6 (patch)
tree8157fc7cf7ad8566d8a2b0c35c903ec629fd0e28 /src/cargotype.cpp
parent6b37ab36eaa10e70e222f468f11e1cdc2a52cb71 (diff)
downloadopenttd-6a1306793108d0ebd51c8d79b8bb8cecd77a6ef6.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.cpp2
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;
}