diff options
author | Fabio Alessandrelli <fabio.alessandrelli@gmail.com> | 2018-11-17 19:00:22 +0100 |
---|---|---|
committer | Fabio Alessandrelli <fabio.alessandrelli@gmail.com> | 2018-11-17 19:06:18 +0100 |
commit | c4495123181e5cf237f82ce568d957354711b51e (patch) | |
tree | 2bae71f4cf98ad76e4e71e90ced333dc3ee99819 /core | |
parent | 9eb4b6d91a64661f8e2823a70f935c602f8a725a (diff) |
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 .
Diffstat (limited to 'core')
-rw-r--r-- | core/variant_call.cpp | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/core/variant_call.cpp b/core/variant_call.cpp index 8693a584f2..8e363cd535 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); |