From c3cb239714a683e64d94b279fdd14ecf6d92a21c Mon Sep 17 00:00:00 2001 From: "Andrii Doroshenko (Xrayez)" Date: Thu, 5 Aug 2021 21:37:07 +0300 Subject: [PATCH] Make sure to return result from `Object::call()` in `Mixin`. [ci skip] --- core/script/mixin_script/mixin_script.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/script/mixin_script/mixin_script.cpp b/core/script/mixin_script/mixin_script.cpp index e2fb13db..464b91dd 100644 --- a/core/script/mixin_script/mixin_script.cpp +++ b/core/script/mixin_script/mixin_script.cpp @@ -522,7 +522,7 @@ Variant Mixin::call(const StringName &p_method, const Variant **p_args, int p_ar // The following allows to call `Mixin.free()`. // This is not strictly needed because Mixin objects should not be instantiated directly, // and doing so is discouraged, but this can make debug builds more robust for fuzz testing. - Object::call(p_method, p_args, p_argcount, r_error); + return Object::call(p_method, p_args, p_argcount, r_error); #endif return Variant(); }