diff options
| author | cdemirer <41021322+cdemirer@users.noreply.github.com> | 2022-01-18 03:00:39 +0800 |
|---|---|---|
| committer | cdemirer <41021322+cdemirer@users.noreply.github.com> | 2022-01-18 03:00:39 +0800 |
| commit | fbe903909d6122492c56ec1a1884af17d6f9aee5 (patch) | |
| tree | efbbeb630476bea7f608ab8b8df0af4e1c3fcb67 | |
| parent | f09d88443b362326fe5c084f5c819e2c01a52d56 (diff) | |
Fix validated version of array addition
| -rw-r--r-- | core/variant/variant_op.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/core/variant/variant_op.h b/core/variant/variant_op.h index 353524469a..48aa8b696a 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<Array>::get_ptr(r_ret), *VariantGetInternalPtr<Array>::get_ptr(left), *VariantGetInternalPtr<Array>::get_ptr(right)); } static void ptr_evaluate(const void *left, const void *right, void *r_ret) { |