mirror of
https://github.com/Mestima/GodotHook.git
synced 2025-05-03 23:00:23 +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]];
|
Callable function = tmp[keys[key_i]];
|
||||||
if (!defer) {
|
if (!defer) {
|
||||||
Callable::CallError call_error;
|
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 {
|
} else {
|
||||||
function.call_deferredp(argptrs, args.size());
|
function.call_deferredp(argptrs, args.size());
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user