summaryrefslogtreecommitdiff
path: root/src/water_cmd.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/water_cmd.cpp')
-rw-r--r--src/water_cmd.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/water_cmd.cpp b/src/water_cmd.cpp
index 2b6f68728..7b9f70a50 100644
--- a/src/water_cmd.cpp
+++ b/src/water_cmd.cpp
@@ -732,10 +732,10 @@ static void FloodVehicles(TileIndex tile)
if (IsTileType(tile, MP_STATION) && IsAirport(tile)) {
const Station *st = Station::GetByTile(tile);
- const AirportFTAClass *airport = st->Airport();
- z = 1 + airport->delta_z;
- for (uint x = 0; x < airport->size_x; x++) {
- for (uint y = 0; y < airport->size_y; y++) {
+ const AirportSpec *as = st->GetAirportSpec();
+ z = 1 + st->Airport()->delta_z;
+ for (uint x = 0; x < as->size_x; x++) {
+ for (uint y = 0; y < as->size_y; y++) {
tile = TILE_ADDXY(st->airport_tile, x, y);
FindVehicleOnPos(tile, &z, &FloodVehicleProc);
}