summaryrefslogtreecommitdiff
path: root/economy.c
diff options
context:
space:
mode:
authortruelight <truelight@openttd.org>2004-12-30 10:03:35 +0000
committertruelight <truelight@openttd.org>2004-12-30 10:03:35 +0000
commit546fcfa3ec6828dba8ebedac449a96284bfd7e06 (patch)
treea0f5b3a24386860688abd056c31bfa80700cf377 /economy.c
parent32c3fbd18ea40c46717aa6dfa35235aa5b66fe07 (diff)
downloadopenttd-546fcfa3ec6828dba8ebedac449a96284bfd7e06.tar.xz
(svn r1301) -Codechange: _industries finally has FOR_ALL_INDUSTRIES too
Diffstat (limited to 'economy.c')
-rw-r--r--economy.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/economy.c b/economy.c
index 04bd4d7c1..67992d55c 100644
--- a/economy.c
+++ b/economy.c
@@ -1127,7 +1127,7 @@ static void DeliverGoodsToIndustry(TileIndex xy, byte cargo_type, int num_pieces
* the cargo */
best = NULL;
u = _patches.station_spread + 8;
- for(ind = _industries; ind != endof(_industries); ind++) {
+ FOR_ALL_INDUSTRIES(ind) {
if (ind->xy != 0 && (cargo_type == ind->accepts_cargo[0] || cargo_type
== ind->accepts_cargo[1] || cargo_type == ind->accepts_cargo[2]) &&
ind->produced_cargo[0] != 0xFF &&