aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorShauren <shauren.trinity@gmail.com>2025-01-07 00:59:28 +0100
committerOvahlord <dreadkiller@gmx.de>2025-01-09 20:53:23 +0100
commitbceca01ce57f13be0a3597c1852f4e7e4a8084d5 (patch)
tree3158d4929412791b46dc26e67cff962eb089d75f /src
parent9921cbffe9fb5d5e6e76c9d63c1ed38d81b3a503 (diff)
Core/Time: Fixed WowTime operator<=>
(cherry picked from commit 19aef6882d4ec21f790b67d94a6bd039970156a6)
Diffstat (limited to 'src')
-rw-r--r--src/server/game/Time/WowTime.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/server/game/Time/WowTime.cpp b/src/server/game/Time/WowTime.cpp
index b88f0c56a8e..6ad2760dcf0 100644
--- a/src/server/game/Time/WowTime.cpp
+++ b/src/server/game/Time/WowTime.cpp
@@ -161,10 +161,10 @@ std::strong_ordering operator<=>(WowTime const& left, WowTime const& right)
if (std::strong_ordering cmp = compareFieldIfSet(&WowTime::_weekDay); advstd::is_neq(cmp))
return cmp;
- if (std::strong_ordering cmp = compareFieldIfSet(&WowTime::_year); advstd::is_neq(cmp))
+ if (std::strong_ordering cmp = compareFieldIfSet(&WowTime::_hour); advstd::is_neq(cmp))
return cmp;
- if (std::strong_ordering cmp = compareFieldIfSet(&WowTime::_hour); advstd::is_neq(cmp))
+ if (std::strong_ordering cmp = compareFieldIfSet(&WowTime::_minute); advstd::is_neq(cmp))
return cmp;
return std::strong_ordering::equal;