浏览代码

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.
Hein-Pieter van Braam 8 年之前
父节点
当前提交
4d14d61bbc
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      core/variant_op.cpp

+ 1 - 1
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;
 	}