# HG changeset patch # User rubidium # Date 1191162585 0 # Node ID 314256ffab9df5c4cf5f1603a3c47de68fe912ef # Parent 533a9c9a5e8301aa8cf3a4de7a6b581d6f89d72c (svn r11186) -Fix: only fill the accepted cargo fields once, not multiple times. diff -r 533a9c9a5e83 -r 314256ffab9d src/industry_cmd.cpp --- a/src/industry_cmd.cpp Fri Sep 28 21:24:25 2007 +0000 +++ b/src/industry_cmd.cpp Sun Sep 30 14:29:45 2007 +0000 @@ -358,7 +358,8 @@ 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]; } }