Merge pull request #59234 from akien-mga/3.x-rid-comparison-id

This commit is contained in:
Rémi Verschelde 2022-03-18 12:06:17 +01:00 committed by GitHub
commit 4739c821dc
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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