From d2ddd8b228a5d735a334f7c58660d1aff89d09f1 Mon Sep 17 00:00:00 2001 From: Ninni Pipping Date: Thu, 18 May 2023 13:25:40 +0200 Subject: [PATCH] Fix `StringName` comparison --- core/string/string_name.h | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/core/string/string_name.h b/core/string/string_name.h index 07abc781a28..4ed58d82862 100644 --- a/core/string/string_name.h +++ b/core/string/string_name.h @@ -117,6 +117,15 @@ public: _FORCE_INLINE_ bool operator<(const StringName &p_name) const { return _data < p_name._data; } + _FORCE_INLINE_ bool operator<=(const StringName &p_name) const { + return _data <= p_name._data; + } + _FORCE_INLINE_ bool operator>(const StringName &p_name) const { + return _data > p_name._data; + } + _FORCE_INLINE_ bool operator>=(const StringName &p_name) const { + return _data >= p_name._data; + } _FORCE_INLINE_ bool operator==(const StringName &p_name) const { // the real magic of all this mess happens here. // this is why path comparisons are very fast