Codechange: Replace FOR_ALL_SIGNS with range-based for loops

This commit is contained in:
glx
2019-12-17 19:14:42 +01:00
committed by Niels Martin Hansen
parent b91abd3af9
commit 869581eb23
8 changed files with 7 additions and 19 deletions

View File

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