From 32c0c3a64484fded063838b49b21a939dcafed97 Mon Sep 17 00:00:00 2001 From: rubidium Date: Sun, 30 Sep 2007 14:29:45 +0000 Subject: [PATCH] (svn r11186) -Fix: only fill the accepted cargo fields once, not multiple times. --- src/industry_cmd.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/industry_cmd.cpp b/src/industry_cmd.cpp index c12ac659c6..1816adc4c9 100644 --- a/src/industry_cmd.cpp +++ b/src/industry_cmd.cpp @@ -358,7 +358,8 @@ static void GetAcceptedCargo_Industry(TileIndex tile, AcceptedCargo ac) for (byte i = 0; i < lengthof(itspec->accepts_cargo); i++) { CargoID a = accepts_cargo[i]; - if (a != CT_INVALID) ac[a] = acceptance[i]; + /* Only set the value once. */ + if (a != CT_INVALID && ac[a] == 0) ac[a] = acceptance[i]; } }