mirror of
https://github.com/OpenTTD/OpenTTD
synced 2026-01-28 06:34:33 +01:00
Codechange: Replace FOR_ALL_INDUSTRIES with range-based for loops
This commit is contained in:
@@ -1203,8 +1203,7 @@ protected:
|
||||
if (this->industries.NeedRebuild()) {
|
||||
this->industries.clear();
|
||||
|
||||
const Industry *i;
|
||||
FOR_ALL_INDUSTRIES(i) {
|
||||
for (const Industry *i : Industry::Iterate()) {
|
||||
this->industries.push_back(i);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user