From f03f962c1411e7c888d356de7b02a43615855bf3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alf-Andr=C3=A9=20Walla?= Date: Sun, 20 Oct 2024 10:28:47 +0200 Subject: [PATCH] Remove method from vmcall arguments for varargs to work properly --- src/sandbox.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/sandbox.cpp b/src/sandbox.cpp index 98888765..669c40dd 100644 --- a/src/sandbox.cpp +++ b/src/sandbox.cpp @@ -31,7 +31,7 @@ void Sandbox::_bind_methods() { ClassDB::bind_method(D_METHOD("load_buffer", "buffer"), &Sandbox::load_buffer); { MethodInfo mi; - mi.arguments.push_back(PropertyInfo(Variant::STRING, "function")); + //mi.arguments.push_back(PropertyInfo(Variant::STRING, "function")); mi.name = "vmcall"; mi.return_val = PropertyInfo(Variant::OBJECT, "result"); ClassDB::bind_vararg_method(METHOD_FLAGS_DEFAULT, "vmcall", &Sandbox::vmcall, mi, DEFVAL(std::vector{}));