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:
Mestima 2022-08-19 03:56:18 +03:00
parent eeeee63f7b
commit 6ba7ff7e1f
No known key found for this signature in database
GPG Key ID: 32203E72500DBC92

View File

@ -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 {