1
0
Fork 0

(svn r22324) -Fix: Vehicles skipped orders when inserting automatic orders failed.

release/1.2
frosch 2011-04-15 19:03:55 +00:00
parent 2cbffe0423
commit 5eafcd8de6
1 changed files with 7 additions and 0 deletions

View File

@ -1919,6 +1919,13 @@ void Vehicle::HandleLoading(bool mode)
this->LeaveStation();
/* Only advance to next order if we just loaded at the current one */
const Order *order = this->GetOrder(this->cur_auto_order_index);
if (order == NULL ||
(!order->IsType(OT_AUTOMATIC) && !order->IsType(OT_GOTO_STATION)) ||
order->GetDestination() != this->last_station_visited) {
return;
}
break;
}