diff options
author | frosch <frosch@openttd.org> | 2011-06-14 19:19:13 +0000 |
---|---|---|
committer | frosch <frosch@openttd.org> | 2011-06-14 19:19:13 +0000 |
commit | f71a96d584216c800b1fafd2d3f785635e9818a8 (patch) | |
tree | 6df14a8184e07a3f6c76c9a1aab1836f3ed5421a /src/train_cmd.cpp | |
parent | 52a3842fe3870de9605785d8118357b0d970ee94 (diff) | |
download | openttd-f71a96d584216c800b1fafd2d3f785635e9818a8.tar.xz |
(svn r22589) -Fix [FS#4641]: PBS order forecasting modified the current order index in case of a goto-nearest-depot order and no depot could be found.
Diffstat (limited to 'src/train_cmd.cpp')
-rw-r--r-- | src/train_cmd.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/train_cmd.cpp b/src/train_cmd.cpp index 35ded7fdf..8db6490b9 100644 --- a/src/train_cmd.cpp +++ b/src/train_cmd.cpp @@ -2340,8 +2340,7 @@ public: case OT_GOTO_STATION: case OT_GOTO_WAYPOINT: this->v->current_order = *order; - UpdateOrderDest(this->v, order); - return true; + return UpdateOrderDest(this->v, order, 0, true); case OT_CONDITIONAL: { if (conditional_depth > this->v->GetNumOrders()) return false; VehicleOrderID next = ProcessConditionalOrder(order, this->v); |