diff options
author | RĂ©mi Verschelde <remi@verschelde.fr> | 2022-01-17 21:08:48 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-01-17 21:08:48 +0100 |
commit | ff19feb8b89080e91ec0c23bf79eb1abef88ac99 (patch) | |
tree | 4cd439336711ef42dd64b8643fd6861091cde5bb | |
parent | 4cfade6212be18f0b1a215dc088a9f1d6ac9b395 (diff) | |
parent | fbe903909d6122492c56ec1a1884af17d6f9aee5 (diff) |
Merge pull request #55939 from cdemirer/validated-array-add-fix
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 9791cb67b3..f72a92d31a 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) { |