diff -r e7b66723eba7 -r 36c1366367e4 economy.c --- a/economy.c Thu Dec 30 09:46:40 2004 +0000 +++ b/economy.c Thu Dec 30 10:03:35 2004 +0000 @@ -1127,7 +1127,7 @@ * 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 &&