summaryrefslogtreecommitdiff
path: root/src/saveload/afterload.cpp
diff options
context:
space:
mode:
authorglx <glx@openttd.org>2019-12-17 19:14:42 +0100
committerNiels Martin Hansen <nielsm@indvikleren.dk>2019-12-21 20:13:03 +0100
commit869581eb238b820574d64cd8dabc9324cd7a0dd5 (patch)
treeb6d3937c8da8ad0f3b477601bb01e05d4c647cec /src/saveload/afterload.cpp
parentb91abd3af98cca51221210198e2c9607055c19b2 (diff)
downloadopenttd-869581eb238b820574d64cd8dabc9324cd7a0dd5.tar.xz
Codechange: Replace FOR_ALL_SIGNS with range-based for loops
Diffstat (limited to 'src/saveload/afterload.cpp')
-rw-r--r--src/saveload/afterload.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/saveload/afterload.cpp b/src/saveload/afterload.cpp
index d175b612f..f4e81b75b 100644
--- a/src/saveload/afterload.cpp
+++ b/src/saveload/afterload.cpp
@@ -1990,8 +1990,7 @@ bool AfterLoadGame()
UpdateNearestTownForRoadTiles(false);
/* signs with invalid owner left from older savegames */
- Sign *si;
- FOR_ALL_SIGNS(si) {
+ for (Sign *si : Sign::Iterate()) {
if (si->owner != OWNER_NONE && !Company::IsValidID(si->owner)) si->owner = OWNER_NONE;
}