aboutsummaryrefslogtreecommitdiff
path: root/src/server/game/Texts
diff options
context:
space:
mode:
authorShauren <shauren.trinity@gmail.com>2023-08-24 11:48:45 +0200
committerShauren <shauren.trinity@gmail.com>2023-08-24 11:48:45 +0200
commit451314241dc40c4e3be600ef95a4f4fbd322f701 (patch)
tree1c55abe5e0027df578a792015254e4b95b8e6d80 /src/server/game/Texts
parent343d09bc95ade0cc34f953b56cbe666baca387fc (diff)
Core/Misc: Modernize comparison operators
(cherry picked from commit f0a862e71bc12d86a898901ef773475a7c964832)
Diffstat (limited to 'src/server/game/Texts')
-rw-r--r--src/server/game/Texts/CreatureTextMgr.h5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/server/game/Texts/CreatureTextMgr.h b/src/server/game/Texts/CreatureTextMgr.h
index 263685566aa..fe8450ab797 100644
--- a/src/server/game/Texts/CreatureTextMgr.h
+++ b/src/server/game/Texts/CreatureTextMgr.h
@@ -64,10 +64,7 @@ struct CreatureTextId
{
CreatureTextId(uint32 e, uint32 g, uint32 i) : entry(e), textGroup(g), textId(i) { }
- bool operator<(CreatureTextId const& right) const
- {
- return std::tie(entry, textGroup, textId) < std::tie(right.entry, right.textGroup, right.textId);
- }
+ friend std::strong_ordering operator<=>(CreatureTextId const& left, CreatureTextId const& right) = default;
uint32 entry;
uint32 textGroup;