summaryrefslogtreecommitdiff
path: root/town_cmd.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 /town_cmd.c
parent32c3fbd18ea40c46717aa6dfa35235aa5b66fe07 (diff)
downloadopenttd-546fcfa3ec6828dba8ebedac449a96284bfd7e06.tar.xz
(svn r1301) -Codechange: _industries finally has FOR_ALL_INDUSTRIES too
Diffstat (limited to 'town_cmd.c')
-rw-r--r--town_cmd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/town_cmd.c b/town_cmd.c
index 2830ea23b..bb72d2bf1 100644
--- a/town_cmd.c
+++ b/town_cmd.c
@@ -1375,7 +1375,7 @@ void DeleteTown(Town *t)
_town_sort_dirty = true;
// Delete all industries belonging to the town
- for(i=_industries; i != endof(_industries); i++) {
+ FOR_ALL_INDUSTRIES(i) {
if (i->xy && i->town == t)
DeleteIndustry(i);
}