summaryrefslogtreecommitdiff
path: root/src/station.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/station.cpp')
-rw-r--r--src/station.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/station.cpp b/src/station.cpp
index 3e00bdb14..61c53bc56 100644
--- a/src/station.cpp
+++ b/src/station.cpp
@@ -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); }
}