mirror of
https://github.com/godotengine/godot.git
synced 2025-11-09 10:01:15 +00:00
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 .
This commit is contained in:
parent
9eb4b6d91a
commit
c449512318
1 changed files with 0 additions and 2 deletions
|
|
@ -155,9 +155,7 @@ struct _VariantCall {
|
||||||
funcdata.default_args = p_defaultarg;
|
funcdata.default_args = p_defaultarg;
|
||||||
funcdata._const = p_const;
|
funcdata._const = p_const;
|
||||||
funcdata.returns = p_has_return;
|
funcdata.returns = p_has_return;
|
||||||
#ifdef DEBUG_ENABLED
|
|
||||||
funcdata.return_type = p_return;
|
funcdata.return_type = p_return;
|
||||||
#endif
|
|
||||||
|
|
||||||
if (p_argtype1.name) {
|
if (p_argtype1.name) {
|
||||||
funcdata.arg_types.push_back(p_argtype1.type);
|
funcdata.arg_types.push_back(p_argtype1.type);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue