Codechange: Use Map::Iterate() to iterate tiles

This commit is contained in:
SamuXarick
2024-10-27 18:52:57 +00:00
committed by rubidium42
parent cfb995b6e9
commit 10e2d1ca36
15 changed files with 36 additions and 36 deletions

View File

@@ -106,7 +106,7 @@ void AfterLoadCompanyStats()
}
Company *c;
for (TileIndex tile = 0; tile < Map::Size(); tile++) {
for (const auto tile : Map::Iterate()) {
switch (GetTileType(tile)) {
case MP_RAILWAY:
c = Company::GetIfValid(GetTileOwner(tile));