summaryrefslogtreecommitdiff
path: root/src/newgrf_house.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/newgrf_house.cpp')
-rw-r--r--src/newgrf_house.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/newgrf_house.cpp b/src/newgrf_house.cpp
index 967b3cb83..b7d8048c9 100644
--- a/src/newgrf_house.cpp
+++ b/src/newgrf_house.cpp
@@ -83,8 +83,7 @@ void InitializeBuildingCounts()
{
memset(&_building_counts, 0, sizeof(_building_counts));
- Town *t;
- FOR_ALL_TOWNS(t) {
+ for (Town *t : Town::Iterate()) {
memset(&t->cache.building_counts, 0, sizeof(t->cache.building_counts));
}
}