Skip to content

Commit 4d093e8

Browse files
committed
Update BindingsHooks.cpp
1 parent ccdebc0 commit 4d093e8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/lang/BindingsHooks.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -107,9 +107,9 @@ bool GDNativeClass_getunboundmethod(py_Ref self, py_Name name) {
107107
Variant res = ClassDB::instantiate(clazz);
108108
py_newvariant(py_retval(), &res);
109109
} else {
110-
InternalArguments arguments;
110+
InternalArguments args(argc - 1);
111111
for (int i = 1; i < argc; i++) {
112-
arguments.append(py_tovariant(&argv[i]));
112+
args.set(i - 1, py_tovariant(&argv[i]));
113113
}
114114
Variant r_ret;
115115
GDExtensionCallError r_error;

0 commit comments

Comments
 (0)