diff --git a/src/openrct2/core/Identifier.hpp b/src/openrct2/core/Identifier.hpp index 21a8fca916..0e97e6515d 100644 --- a/src/openrct2/core/Identifier.hpp +++ b/src/openrct2/core/Identifier.hpp @@ -86,8 +86,18 @@ public: return ToUnderlying() < other.ToUnderlying(); } + constexpr bool operator<=(const TIdentifier& other) const noexcept + { + return ToUnderlying() <= other.ToUnderlying(); + } + constexpr bool operator>(const TIdentifier& other) const noexcept { return ToUnderlying() > other.ToUnderlying(); } + + constexpr bool operator>=(const TIdentifier& other) const noexcept + { + return ToUnderlying() >= other.ToUnderlying(); + } };