Loading

Paste #phgyjhwi3

  1. diff --git a/src/order_gui.cpp b/src/order_gui.cpp
  2. index fa56f70cbd..7364ccd8a4 100644
  3. --- a/src/order_gui.cpp
  4. +++ b/src/order_gui.cpp
  5. @@ -410,8 +410,7 @@ static Order GetOrderCmdFromTile(const Vehicle *v, TileIndex tile)
  6.                 default: NOT_REACHED();
  7.             }
  8.             if (st->facilities & facil) {
  9. -               StationID st_index = GetStationIndex(st->xy);
  10. -               order.MakeGoToStation(st_index);
  11. +               order.MakeGoToStation(st->index);
  12.                 if (_ctrl_pressed) order.SetLoadType(OLF_FULL_LOAD_ANY);
  13.                 if (_settings_client.gui.new_nonstop && v->IsGroundVehicle()) order.SetNonStopType(ONSF_NO_STOP_AT_INTERMEDIATE_STATIONS);
  14.                 order.SetStopLocation(v->type == VEH_TRAIN ? (OrderStopLocation)(_settings_client.gui.stop_location) : OSL_PLATFORM_FAR_END);
  15.  

Comments