summaryrefslogtreecommitdiffstats
path: root/core/extension
diff options
context:
space:
mode:
authorDanil Alexeev <danil@alexeev.xyz>2024-08-30 21:09:30 +0300
committerDanil Alexeev <danil@alexeev.xyz>2024-08-30 21:09:30 +0300
commit49bcdf78a7ce5009d6f6ebce6ead31c2aa7a55b9 (patch)
tree0204ed74b55b5271ed72b5079abea2e34c95fcfd /core/extension
parenta5830f6eb9fe25fbb7e58a723dbea8509aec8a85 (diff)
downloadredot-engine-49bcdf78a7ce5009d6f6ebce6ead31c2aa7a55b9.tar.gz
Core: Сheck `r_error` after calling `callp()`
Diffstat (limited to 'core/extension')
-rw-r--r--core/extension/gdextension_interface.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/extension/gdextension_interface.cpp b/core/extension/gdextension_interface.cpp
index a5a0fc906a..0ebe86d0a7 100644
--- a/core/extension/gdextension_interface.cpp
+++ b/core/extension/gdextension_interface.cpp
@@ -1299,7 +1299,7 @@ static void gdextension_object_call_script_method(GDExtensionObjectPtr p_object,
const StringName method = *reinterpret_cast<const StringName *>(p_method);
const Variant **args = (const Variant **)p_args;
- Callable::CallError error;
+ Callable::CallError error; // TODO: Check `error`?
memnew_placement(r_return, Variant);
*(Variant *)r_return = o->callp(method, args, p_argument_count, error);