diff options
Diffstat (limited to 'src/order_cmd.cpp')
-rw-r--r-- | src/order_cmd.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/order_cmd.cpp b/src/order_cmd.cpp index ccf2fe9f9..814e88be4 100644 --- a/src/order_cmd.cpp +++ b/src/order_cmd.cpp @@ -510,7 +510,7 @@ CommandCost CmdInsertOrder(TileIndex tile, DoCommandFlag flags, uint32 p1, uint3 if (st == NULL || !CheckOwnership(st->owner) || !CanVehicleUseStation(v, st) || - st->Airport()->nof_depots == 0) { + st->GetAirportSpec()->nof_depots == 0) { return CMD_ERROR; } } else { |