diff --git a/src/order_cmd.cpp b/src/order_cmd.cpp index a17a67cbca..fd4b64e4c8 100644 --- a/src/order_cmd.cpp +++ b/src/order_cmd.cpp @@ -429,6 +429,7 @@ TileIndex Order::GetLocation(const Vehicle *v) const switch (this->GetType()) { case OT_GOTO_WAYPOINT: case OT_GOTO_STATION: + case OT_AUTOMATIC: return BaseStation::Get(this->GetDestination())->xy; case OT_GOTO_DEPOT: