diff options
author | Peter Nelson <peter1138@openttd.org> | 2019-01-14 23:33:42 +0000 |
---|---|---|
committer | PeterN <peter@fuzzle.org> | 2019-01-19 23:11:17 +0000 |
commit | 81330b8d6edee68c38717462737fbfca6420701d (patch) | |
tree | ed4e0e34930a5e6f28b5d275c27f6ccb50a2ba63 /src/vehicle.cpp | |
parent | 1c725fce47d60907bbf2224c7bdc28607fcf6017 (diff) | |
download | openttd-81330b8d6edee68c38717462737fbfca6420701d.tar.xz |
Change: Add path cache for ships.
Diffstat (limited to 'src/vehicle.cpp')
-rw-r--r-- | src/vehicle.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/vehicle.cpp b/src/vehicle.cpp index 1ed43c9b6..46141ce26 100644 --- a/src/vehicle.cpp +++ b/src/vehicle.cpp @@ -2337,7 +2337,7 @@ CommandCost Vehicle::SendToDepot(DoCommandFlag flags, DepotCommand command) SetBit(gv_flags, GVF_SUPPRESS_IMPLICIT_ORDERS); } - this->dest_tile = location; + this->SetDestTile(location); this->current_order.MakeGoToDepot(destination, ODTF_MANUAL); if (!(command & DEPOT_SERVICE)) this->current_order.SetDepotActionType(ODATFB_HALT); SetWindowWidgetDirty(WC_VEHICLE_VIEW, this->index, WID_VV_START_STOP); |