1
0
mirror of https://github.com/OpenTTD/OpenTTD synced 2026-01-20 02:42:42 +01:00

Codechange: strongly type DepotID

This commit is contained in:
Rubidium
2025-02-07 16:45:45 +01:00
committed by rubidium42
parent d55b9cff9d
commit 798e9f229c
8 changed files with 12 additions and 9 deletions

View File

@@ -2355,8 +2355,8 @@ bool AfterLoadGame()
d = nullptr;
continue;
}
tile.m2() = d->index;
if (IsTileType(tile, MP_WATER)) Tile(GetOtherShipDepotTile(tile)).m2() = d->index;
tile.m2() = d->index.base();
if (IsTileType(tile, MP_WATER)) Tile(GetOtherShipDepotTile(tile)).m2() = d->index.base();
}
}