mirror of
https://github.com/Mestima/GodotHook.git
synced 2025-05-03 14:50:27 +00:00
Fixed bug that static var cannot be created in method arguments
This commit is contained in:
parent
805257da76
commit
5300b67a9a
3
hook.cpp
3
hook.cpp
@ -28,7 +28,8 @@ void Hook::Call(String event, Array args = Array(), bool defer = false) {
|
||||
Callable function = tmp[keys[key_i]];
|
||||
if (!defer) {
|
||||
Callable::CallError call_error;
|
||||
function.callp(argptrs, args.size(), Variant(), call_error);
|
||||
Variant r_return_variant = Variant();
|
||||
function.callp(argptrs, args.size(), r_return_variant, call_error);
|
||||
} else {
|
||||
function.call_deferredp(argptrs, args.size());
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user