mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-03-06 14:27:16 +00:00
(svn r11186) -Fix: only fill the accepted cargo fields once, not multiple times.
This commit is contained in:
parent
136d726b6f
commit
32c0c3a644
@ -358,7 +358,8 @@ static void GetAcceptedCargo_Industry(TileIndex tile, AcceptedCargo ac)
|
|||||||
|
|
||||||
for (byte i = 0; i < lengthof(itspec->accepts_cargo); i++) {
|
for (byte i = 0; i < lengthof(itspec->accepts_cargo); i++) {
|
||||||
CargoID a = 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];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user