From d669801f1d18e295e7497eaa19d0398da67bffe8 Mon Sep 17 00:00:00 2001 From: yexo Date: Fri, 15 Jan 2010 12:08:08 +0000 Subject: (svn r18807) -Codechange: introduce AirportSpec and move several non-statemachine-related variables to there --- src/order_cmd.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/order_cmd.cpp') 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 { -- cgit v1.2.3-54-g00ecf