(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.
This commit is contained in:
@@ -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);
|
||||
|
Reference in New Issue
Block a user