diff --git a/core/variant/variant_op.cpp b/core/variant/variant_op.cpp index e9c817bc9f6..e0a3cf4215f 100644 --- a/core/variant/variant_op.cpp +++ b/core/variant/variant_op.cpp @@ -318,6 +318,7 @@ public: r_valid = true; } static void validated_evaluate(const Variant *left, const Variant *right, Variant *r_ret) { + VariantTypeChanger::change(r_ret); *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) {