forked from mirror/OpenTTD
Codechange: Replace FOR_ALL_INDUSTRIES with range-based for loops
This commit is contained in:
@@ -112,8 +112,7 @@ Town::~Town()
|
||||
DeleteWindowById(WC_TOWN_VIEW, this->index);
|
||||
|
||||
/* Check no industry is related to us. */
|
||||
const Industry *i;
|
||||
FOR_ALL_INDUSTRIES(i) assert(i->town != this);
|
||||
for (const Industry *i : Industry::Iterate()) assert(i->town != this);
|
||||
|
||||
/* ... and no object is related to us. */
|
||||
const Object *o;
|
||||
|
Reference in New Issue
Block a user