diff options
author | A Thousand Ships <96648715+AThousandShips@users.noreply.github.com> | 2024-04-13 17:23:25 +0200 |
---|---|---|
committer | A Thousand Ships <96648715+AThousandShips@users.noreply.github.com> | 2024-04-13 17:32:33 +0200 |
commit | 80cb914e064809e5440b8747a508547fc11c77de (patch) | |
tree | 604e88887cd3cb5d2e5ebc63fc6cc3345082c108 /core/variant | |
parent | 43b32f9d0baa13ef8e7079521fbef7c4f090aa88 (diff) | |
download | redot-engine-80cb914e064809e5440b8747a508547fc11c77de.tar.gz |
[Core] Fix incorrect comparison for `Array` const iterator
Diffstat (limited to 'core/variant')
-rw-r--r-- | core/variant/array.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/variant/array.h b/core/variant/array.h index d45a6887e2..3aa957b312 100644 --- a/core/variant/array.h +++ b/core/variant/array.h @@ -54,7 +54,7 @@ public: _FORCE_INLINE_ ConstIterator &operator--(); _FORCE_INLINE_ bool operator==(const ConstIterator &p_other) const { return element_ptr == p_other.element_ptr; } - _FORCE_INLINE_ bool operator!=(const ConstIterator &p_other) const { return element_ptr == p_other.element_ptr; } + _FORCE_INLINE_ bool operator!=(const ConstIterator &p_other) const { return element_ptr != p_other.element_ptr; } _FORCE_INLINE_ ConstIterator(const Variant *p_element_ptr, Variant *p_read_only = nullptr) : element_ptr(p_element_ptr), read_only(p_read_only) {} |