From bb4d44102deaf8f282a25b409c290ea6d64aed57 Mon Sep 17 00:00:00 2001 From: Brian Semrau Date: Wed, 16 Dec 2020 08:59:06 -0500 Subject: Fix bitwise-and eval not updating return type --- core/variant/variant_op.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/core/variant/variant_op.cpp b/core/variant/variant_op.cpp index df29ec7b63..e988a2b703 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) { -- cgit v1.2.3