summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <remi@verschelde.fr>2022-06-23 14:37:33 +0200
committerGitHub <noreply@github.com>2022-06-23 14:37:33 +0200
commite3fb066cb01019919c29dae3fd08e0753ed56b75 (patch)
treecc5f75073937d6186fd13a2814a90f2ceb979a46
parent91b984a507a7dc6da017220bb02b4e7fe1abc4be (diff)
parent5c365713cab6d8b292e0c64da758b12ff80ba030 (diff)
Merge pull request #62317 from Black-Cat/release-return-fix
-rw-r--r--modules/gdscript/gdscript_vm.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/gdscript/gdscript_vm.cpp b/modules/gdscript/gdscript_vm.cpp
index 55f4ebb1c5..20b8d29ec3 100644
--- a/modules/gdscript/gdscript_vm.cpp
+++ b/modules/gdscript/gdscript_vm.cpp
@@ -3432,9 +3432,9 @@ Variant GDScriptFunction::call(GDScriptInstance *p_instance, const Variant **p_a
_err_print_error(err_func.utf8().get_data(), err_file.utf8().get_data(), err_line, err_text.utf8().get_data(), false, ERR_HANDLER_SCRIPT);
}
-#endif
// Get a default return type in case of failure
retvalue = _get_default_variant_for_data_type(return_type);
+#endif
OPCODE_OUT;
}