(svn r18807) -Codechange: introduce AirportSpec and move several non-statemachine-related variables to there
This commit is contained in:
@@ -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 {
|
||||
|
Reference in New Issue
Block a user