From c4495123181e5cf237f82ce568d957354711b51e Mon Sep 17 00:00:00 2001 From: Fabio Alessandrelli Date: Sat, 17 Nov 2018 19:00:22 +0100 Subject: [PATCH] Always initialize VariantCall return_type. The return_type is used by the GDScript parser (and possibly other scripting languages), so it MUST be initialized at least. It could be initialized to Variant::NIL in release, but I see no reason for not setting the actual value. See similar issue in 95dfa5b . --- core/variant_call.cpp | 2 -- 1 file changed, 2 deletions(-) diff --git a/core/variant_call.cpp b/core/variant_call.cpp index 8693a584f2b..8e363cd5355 100644 --- a/core/variant_call.cpp +++ b/core/variant_call.cpp @@ -155,9 +155,7 @@ struct _VariantCall { funcdata.default_args = p_defaultarg; funcdata._const = p_const; funcdata.returns = p_has_return; -#ifdef DEBUG_ENABLED funcdata.return_type = p_return; -#endif if (p_argtype1.name) { funcdata.arg_types.push_back(p_argtype1.type);