diff --git a/core/variant/variant_op.h b/core/variant/variant_op.h index 9791cb67b34..f72a92d31a3 100644 --- a/core/variant/variant_op.h +++ b/core/variant/variant_op.h @@ -775,6 +775,7 @@ public: r_valid = true; } static inline void validated_evaluate(const Variant *left, const Variant *right, Variant *r_ret) { + *r_ret = Array(); _add_arrays(*VariantGetInternalPtr::get_ptr(r_ret), *VariantGetInternalPtr::get_ptr(left), *VariantGetInternalPtr::get_ptr(right)); } static void ptr_evaluate(const void *left, const void *right, void *r_ret) {