summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/station_cmd.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/station_cmd.cpp b/src/station_cmd.cpp
index 1507c73e2..28ac9e134 100644
--- a/src/station_cmd.cpp
+++ b/src/station_cmd.cpp
@@ -1732,7 +1732,7 @@ static CommandCost RemoveAirport(Station *st, uint32 flags)
}
BEGIN_TILE_LOOP(tile_cur, w, h, tile) {
- if (!EnsureNoVehicle(tile_cur)) return CMD_ERROR;
+ if (!EnsureNoVehicleOnGround(tile_cur)) return CMD_ERROR;
if (flags & DC_EXEC) {
DeleteAnimatedTile(tile_cur);