industry_gui.c
changeset 830 36c1366367e4
parent 821 60524daa442c
child 867 dffd33233237
--- a/industry_gui.c	Thu Dec 30 09:46:40 2004 +0000
+++ b/industry_gui.c	Thu Dec 30 10:03:35 2004 +0000
@@ -458,7 +458,7 @@
 	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;