Codechange: Replace FOR_ALL_TOWNS with range-based for loops
This commit is contained in:
@@ -381,8 +381,7 @@ static void AddIndustryToDeliver(Industry *ind, Station *st)
|
||||
*/
|
||||
void Station::RemoveFromAllNearbyLists()
|
||||
{
|
||||
Town *t;
|
||||
FOR_ALL_TOWNS(t) { t->stations_near.erase(this); }
|
||||
for (Town *t : Town::Iterate()) { t->stations_near.erase(this); }
|
||||
for (Industry *i : Industry::Iterate()) { i->stations_near.erase(this); }
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user