src/order_cmd.cpp
changeset 10226 8a3f10afb85e
parent 10208 72c00af5c95d
child 10285 82fa43e7b8f3
--- a/src/order_cmd.cpp	Tue Oct 07 20:57:41 2008 +0000
+++ b/src/order_cmd.cpp	Wed Oct 08 11:03:43 2008 +0000
@@ -1616,7 +1616,7 @@
 
 				if (v->FindClosestDepot(&location, &destination, &reverse)) {
 					v->dest_tile = location;
-					v->current_order.MakeGoToDepot(destination, ODTFB_PART_OF_ORDERS);
+					v->current_order.MakeGoToDepot(destination, v->current_order.GetDepotOrderType());
 
 					/* If there is no depot in front, reverse automatically (trains only) */
 					if (v->type == VEH_TRAIN && reverse) DoCommand(v->tile, v->index, 0, DC_EXEC, CMD_REVERSE_TRAIN_DIRECTION);