# HG changeset patch # User smatz # Date 2009-09-21 17:24:21 # Node ID 2bfefcfe19c97ed6589f85f020f3cbf3c741ac8e # Parent a02941e52c9b20463e11b89d229ab893e3449f0e (svn r17601) -Fix (r17592): don't mark cargo as 'accepted' when accepted amount is 0 diff --git a/src/industry_cmd.cpp b/src/industry_cmd.cpp --- a/src/industry_cmd.cpp +++ b/src/industry_cmd.cpp @@ -432,7 +432,7 @@ static void AddAcceptedCargo_Industry(Ti 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];