From f71a96d584216c800b1fafd2d3f785635e9818a8 Mon Sep 17 00:00:00 2001 From: frosch Date: Tue, 14 Jun 2011 19:19:13 +0000 Subject: (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. --- src/train_cmd.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/train_cmd.cpp') 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); -- cgit v1.2.3-54-g00ecf