From 4d14d61bbcf0b33ee5e039858ccfe605430418ea Mon Sep 17 00:00:00 2001 From: Hein-Pieter van Braam Date: Sun, 24 Sep 2017 19:44:49 +0200 Subject: [PATCH] Fix Dictionary set_named Reduz optimized field indexing in 3c85703 but the changes didn't apply to dictionary so this code remained untouched. However, the logic for validity checking was changed but not updated for the dictionary case. --- core/variant_op.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/variant_op.cpp b/core/variant_op.cpp index feaddb3a3c0c..eb592871d857 100644 --- a/core/variant_op.cpp +++ b/core/variant_op.cpp @@ -1519,7 +1519,7 @@ void Variant::set_named(const StringName &p_index, const Variant &p_value, bool } break; default: { - set(p_index.operator String(), p_value, r_valid); + set(p_index.operator String(), p_value, &valid); } break; }