Skip to content

Commit

Permalink
Merge pull request #59234 from akien-mga/3.x-rid-comparison-id
Browse files Browse the repository at this point in the history
  • Loading branch information
akien-mga authored Mar 18, 2022
2 parents 0de7cfc + 797321f commit 4739c82
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions core/rid.h
Original file line number Diff line number Diff line change
Expand Up @@ -68,13 +68,13 @@ class RID {
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;
Expand Down

0 comments on commit 4739c82

Please sign in to comment.