You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-05 12:10:55 +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:
@@ -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);
|
||||||
|
|||||||
Reference in New Issue
Block a user