(svn r11186) -Fix: only fill the accepted cargo fields once, not multiple times.

This commit is contained in:
rubidium 2007-09-30 14:29:45 +00:00
parent 136d726b6f
commit 32c0c3a644
1 changed files with 2 additions and 1 deletions

View File

@ -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];
}
}