summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorsmatz <smatz@openttd.org>2009-09-21 17:24:21 +0000
committersmatz <smatz@openttd.org>2009-09-21 17:24:21 +0000
commit494ef040e523a57be7636a3d55f9ca676c3a43d8 (patch)
treeee1e0dbdd928d8c3e8a88e745d827ef6dbdf6cfd /src
parent8a003eb19732a994a09707bc22eb0cc6b518442d (diff)
downloadopenttd-494ef040e523a57be7636a3d55f9ca676c3a43d8.tar.xz
(svn r17601) -Fix (r17592): don't mark cargo as 'accepted' when accepted amount is 0
Diffstat (limited to 'src')
-rw-r--r--src/industry_cmd.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/industry_cmd.cpp b/src/industry_cmd.cpp
index fe992083e..35b6b91a9 100644
--- a/src/industry_cmd.cpp
+++ b/src/industry_cmd.cpp
@@ -432,7 +432,7 @@ static void AddAcceptedCargo_Industry(TileIndex tile, CargoArray &acceptance, ui
const Industry *ind = Industry::GetByTile(tile);
for (byte i = 0; i < lengthof(itspec->accepts_cargo); i++) {
CargoID a = accepts_cargo[i];
- if (a == CT_INVALID) continue; // work only with valid cargos
+ if (a == CT_INVALID || cargo_acceptance[i] == 0) continue; // work only with valid cargos
/* Add accepted cargo */
acceptance[a] += cargo_acceptance[i];