Revert "RID: Change comparison operators to use RID_Data id instead of address"

(cherry picked from commit c404cc0e58)
This commit is contained in:
Rémi Verschelde 2022-12-12 09:10:37 +01:00
parent 894e302d9a
commit 3b833bfaf1
No known key found for this signature in database
GPG key ID: C3336907360768E1

View file

@ -68,13 +68,13 @@ public:
return _data == p_rid._data; return _data == p_rid._data;
} }
_FORCE_INLINE_ bool operator<(const RID &p_rid) const { _FORCE_INLINE_ bool operator<(const RID &p_rid) const {
return get_id() < p_rid.get_id(); return _data < p_rid._data;
} }
_FORCE_INLINE_ bool operator<=(const RID &p_rid) const { _FORCE_INLINE_ bool operator<=(const RID &p_rid) const {
return get_id() <= p_rid.get_id(); return _data <= p_rid._data;
} }
_FORCE_INLINE_ bool operator>(const RID &p_rid) const { _FORCE_INLINE_ bool operator>(const RID &p_rid) const {
return get_id() > p_rid.get_id(); return _data > p_rid._data;
} }
_FORCE_INLINE_ bool operator!=(const RID &p_rid) const { _FORCE_INLINE_ bool operator!=(const RID &p_rid) const {
return _data != p_rid._data; return _data != p_rid._data;