summaryrefslogtreecommitdiff
path: root/industry_gui.c
diff options
context:
space:
mode:
Diffstat (limited to 'industry_gui.c')
-rw-r--r--industry_gui.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/industry_gui.c b/industry_gui.c
index a3de1511a..76b92a7ed 100644
--- a/industry_gui.c
+++ b/industry_gui.c
@@ -458,7 +458,7 @@ static void MakeSortedIndustryList()
Industry *i;
int n = 0, index = 0;
- for(i=_industries; i != endof(_industries); i++) {
+ FOR_ALL_INDUSTRIES(i) {
if(i->xy)
_industry_sort[n++] = index;