diff --git a/core/array.cpp b/core/array.cpp index 28f7e75c5cf..f6372bd2a90 100644 --- a/core/array.cpp +++ b/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) { diff --git a/core/dictionary.cpp b/core/dictionary.cpp index 400bbfc9a83..1402980b0ea 100644 --- a/core/dictionary.cpp +++ b/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) {