diff options
author | Hein-Pieter van Braam <hp@tmm.cx> | 2017-09-24 19:44:49 +0200 |
---|---|---|
committer | Hein-Pieter van Braam <hp@tmm.cx> | 2017-09-24 19:44:49 +0200 |
commit | 4d14d61bbcf0b33ee5e039858ccfe605430418ea (patch) | |
tree | 9662519a518cf4085e2519d889596fe0445591a0 | |
parent | cebcba902206dd8dec653f4a164f6d6542315683 (diff) | |
download | redot-engine-4d14d61bbcf0b33ee5e039858ccfe605430418ea.tar.gz |
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.
-rw-r--r-- | core/variant_op.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/variant_op.cpp b/core/variant_op.cpp index feaddb3a3c..eb592871d8 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; } |