From dec5ce27f998a3a352e6351a738ffa2672161834 Mon Sep 17 00:00:00 2001 From: tremblap Date: Thu, 17 Aug 2023 13:12:54 +0100 Subject: [PATCH] adding the number of primary parameters to the list of max num arg --- source/include/FluidMaxWrapper.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/include/FluidMaxWrapper.hpp b/source/include/FluidMaxWrapper.hpp index d03ca902..cf1c309e 100644 --- a/source/include/FluidMaxWrapper.hpp +++ b/source/include/FluidMaxWrapper.hpp @@ -1467,7 +1467,7 @@ class FluidMaxWrapper { object_warn((t_object*) x, "Too many arguments. Got %d, expect at most %d", ac, - ParamDescType::NumFixedParams + isControlIn); + ParamDescType::NumFixedParams + ParamDescType::NumPrimaryParams + isControlIn); } return x;