diff --git a/src/station.cpp b/src/station.cpp --- a/src/station.cpp +++ b/src/station.cpp @@ -40,7 +40,7 @@ Station::Station(TileIndex tile) : SpecializedStation(tile), bus_station(INVALID_TILE, 0, 0), truck_station(INVALID_TILE, 0, 0), - airport_tile(INVALID_TILE), + airport(INVALID_TILE, 0, 0), dock_tile(INVALID_TILE), indtype(IT_INVALID), time_since_load(255), @@ -223,9 +223,9 @@ uint Station::GetCatchmentRadius() const if (this->truck_stops != NULL) ret = max(ret, CA_TRUCK); if (this->train_station.tile != INVALID_TILE) ret = max(ret, CA_TRAIN); if (this->dock_tile != INVALID_TILE) ret = max(ret, CA_DOCK); - if (this->airport_tile != INVALID_TILE) ret = max(ret, this->GetAirportSpec()->catchment); + if (this->airport.tile != INVALID_TILE) ret = max(ret, this->GetAirportSpec()->catchment); } else { - if (this->bus_stops != NULL || this->truck_stops != NULL || this->train_station.tile != INVALID_TILE || this->dock_tile != INVALID_TILE || this->airport_tile != INVALID_TILE) { + if (this->bus_stops != NULL || this->truck_stops != NULL || this->train_station.tile != INVALID_TILE || this->dock_tile != INVALID_TILE || this->airport.tile != INVALID_TILE) { ret = CA_UNMODIFIED; } }