diff --git a/lua-api/lib/src/ScriptContext.cpp b/lua-api/lib/src/ScriptContext.cpp index bfd77ef3..42cfbc0d 100644 --- a/lua-api/lib/src/ScriptContext.cpp +++ b/lua-api/lib/src/ScriptContext.cpp @@ -555,6 +555,8 @@ int ScriptContext::setup_bindings() { // Only support basic arguments for now until we can test this more if (args[i].is()) { args_ptr[i] = args[i].as(); + } else if (args[i].is()) { + args_ptr[i] = args[i].as()->object; } else { // We dont support floats for now because we'd need to JIT the function call throw sol::error("DANGEROUS_call_member_virtual: Invalid argument type");