From a682d330c7cbe8fee0790f28d02ff736673e1803 Mon Sep 17 00:00:00 2001 From: Jonathan G Rennison Date: Wed, 18 Dec 2019 20:38:04 +0000 Subject: [PATCH] Silence narrowing cast warning in OrderList::GetNumOrders() in MSVC --- src/order_base.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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.