Skip to content

Commit

Permalink
Remove method from vmcall arguments for varargs to work properly
Browse files Browse the repository at this point in the history
  • Loading branch information
fwsGonzo committed Oct 20, 2024
1 parent 945848b commit f03f962
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/sandbox.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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<Variant>{}));
Expand Down

0 comments on commit f03f962

Please sign in to comment.