From 546fcfa3ec6828dba8ebedac449a96284bfd7e06 Mon Sep 17 00:00:00 2001 From: truelight Date: Thu, 30 Dec 2004 10:03:35 +0000 Subject: (svn r1301) -Codechange: _industries finally has FOR_ALL_INDUSTRIES too --- town_cmd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'town_cmd.c') 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); } -- cgit v1.2.3-54-g00ecf