diff --git a/src/order_base.h b/src/order_base.h index 0a97f4c0b6..a7d1768091 100644 --- a/src/order_base.h +++ b/src/order_base.h @@ -639,7 +639,7 @@ public: * Get number of orders in the order list. * @return number of orders in the chain. */ - inline VehicleOrderID GetNumOrders() const { return this->order_index.size(); } + inline VehicleOrderID GetNumOrders() const { return static_cast(this->order_index.size()); } /** * Get number of manually added orders in the order list.