diff options
Diffstat (limited to 'src/station.cpp')
-rw-r--r-- | src/station.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/station.cpp b/src/station.cpp index 2a343d798..01311ece3 100644 --- a/src/station.cpp +++ b/src/station.cpp @@ -385,8 +385,7 @@ void Station::RemoveFromAllNearbyLists() { Town *t; FOR_ALL_TOWNS(t) { t->stations_near.erase(this); } - Industry *i; - FOR_ALL_INDUSTRIES(i) { i->stations_near.erase(this); } + for (Industry *i : Industry::Iterate()) { i->stations_near.erase(this); } } /** |