mirror of
https://github.com/Mestima/GodotHook.git
synced 2025-05-03 23:00:23 +00:00
Update to the latest version of godot
Callable class changed in a new version: call is callp and call_deferred is a call_deferredp in a new godot version
This commit is contained in:
parent
eeeee63f7b
commit
6ba7ff7e1f
4
hook.cpp
4
hook.cpp
@ -29,9 +29,9 @@ void Hook::Call(String event, Array args, bool defer = false) {
|
||||
Callable function = tmp[keys[key_i]];
|
||||
if (!defer) {
|
||||
Callable::CallError call_error;
|
||||
function.call(argptrs, args.size(), Variant(), call_error);
|
||||
function.callp(argptrs, args.size(), Variant(), call_error);
|
||||
} else {
|
||||
function.call_deferred(argptrs, args.size());
|
||||
function.call_deferredp(argptrs, args.size());
|
||||
}
|
||||
}
|
||||
} else {
|
||||
|
Loading…
x
Reference in New Issue
Block a user