diff --git a/src/order_cmd.cpp b/src/order_cmd.cpp index 08493f4534..bbead403ec 100644 --- a/src/order_cmd.cpp +++ b/src/order_cmd.cpp @@ -917,6 +917,7 @@ TileIndex Order::GetLocation(const Vehicle *v, bool airport) const return BaseStation::Get(this->GetDestination())->xy; case OT_GOTO_DEPOT: + if (this->GetDepotActionType() & ODATFB_NEAREST_DEPOT) return INVALID_TILE; if (this->GetDestination() == INVALID_DEPOT) return INVALID_TILE; return (v->type == VEH_AIRCRAFT) ? Station::Get(this->GetDestination())->xy : Depot::Get(this->GetDestination())->xy;