Codechange: Replace FOR_ALL_ROADSTOPS with range-based for loops

This commit is contained in:
glx
2019-12-17 19:11:24 +01:00
committed by Niels Martin Hansen
parent 514565fad6
commit b91abd3af9
3 changed files with 5 additions and 13 deletions

View File

@@ -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));