Skip to content

Commit

Permalink
Revert "RID: Change comparison operators to use RID_Data id instead o…
Browse files Browse the repository at this point in the history
…f address"
  • Loading branch information
akien-mga authored Dec 12, 2022
1 parent 495a1e3 commit c404cc0
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 get_id() < p_rid.get_id();
return _data < p_rid._data;
}
_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 {
return get_id() > p_rid.get_id();
return _data > p_rid._data;
}
_FORCE_INLINE_ bool operator!=(const RID &p_rid) const {
return _data != p_rid._data;
Expand Down

0 comments on commit c404cc0

Please sign in to comment.