summaryrefslogtreecommitdiff
path: root/src/order_base.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/order_base.h')
-rw-r--r--src/order_base.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/order_base.h b/src/order_base.h
index 0490db068..f239fdff0 100644
--- a/src/order_base.h
+++ b/src/order_base.h
@@ -260,8 +260,8 @@ private:
public:
/** Default constructor producing an invalid order list. */
- OrderList()
- : first(NULL), num_orders(INVALID_VEH_ORDER_ID), num_vehicles(0), first_shared(NULL),
+ OrderList(VehicleOrderID num_orders = INVALID_VEH_ORDER_ID)
+ : first(NULL), num_orders(num_orders), num_vehicles(0), first_shared(NULL),
timetable_duration(0) { }
/** Create an order list with the given order chain for the given vehicle.