浏览代码

Fix Array and Dictionary id() and dictionary test bug

(cherry picked from commit e2ed9d13ebdf4fe2a7a7a4eacd47262310ffa3e3)
cdemirer 3 年之前
父节点
当前提交
dd57c321bf
共有 2 个文件被更改,包括 2 次插入2 次删除
  1. 1 1
      core/array.cpp
  2. 1 1
      core/dictionary.cpp

+ 1 - 1
core/array.cpp

@@ -474,7 +474,7 @@ Variant Array::max() const {
 }
 
 const void *Array::id() const {
-	return _p->array.ptr();
+	return _p;
 }
 
 Array::Array(const Array &p_from) {

+ 1 - 1
core/dictionary.cpp

@@ -280,7 +280,7 @@ void Dictionary::operator=(const Dictionary &p_dictionary) {
 }
 
 const void *Dictionary::id() const {
-	return _p->variant_map.id();
+	return _p;
 }
 
 Dictionary::Dictionary(const Dictionary &p_from) {