From 00fb619d573340e396c43d0161650f9e27391306 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B6rn=20Dahlgren?= Date: Fri, 5 Feb 2021 01:48:35 +0100 Subject: [PATCH] Fixed flipped arguments for check_type with optional start --- src/runtime/d_array.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/runtime/d_array.h b/src/runtime/d_array.h index cc96f53b..b2a5b2b0 100644 --- a/src/runtime/d_array.h +++ b/src/runtime/d_array.h @@ -218,7 +218,7 @@ namespace sqf bool check_type(sqf::runtime::runtime& runtime, const std::array& arr) const { return check_type(runtime, arr.data(), size, size); } bool check_type(sqf::runtime::runtime& runtime, const std::vector& vec) const { return check_type(runtime, vec.data(), vec.size(), vec.size()); } template - bool check_type(sqf::runtime::runtime& runtime, const std::array& arr, size_t optionalstart) const { return check_type(runtime, arr.data(), size, optionalstart); } + bool check_type(sqf::runtime::runtime& runtime, const std::array& arr, size_t optionalstart) const { return check_type(runtime, arr.data(), optionalstart, size); } }; template<> inline std::shared_ptr to_data>(std::vector arr)