summaryrefslogtreecommitdiff
path: root/src/openttd.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/openttd.cpp')
-rw-r--r--src/openttd.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/openttd.cpp b/src/openttd.cpp
index 63d5bf756..c7af56be1 100644
--- a/src/openttd.cpp
+++ b/src/openttd.cpp
@@ -1221,8 +1221,7 @@ static void CheckCaches()
}
/* Strict checking of the road stop cache entries */
- const RoadStop *rs;
- FOR_ALL_ROADSTOPS(rs) {
+ for (const RoadStop *rs : RoadStop::Iterate()) {
if (IsStandardRoadStopTile(rs->xy)) continue;
assert(rs->GetEntry(DIAGDIR_NE) != rs->GetEntry(DIAGDIR_NW));