diff options
author | Shauren <shauren.trinity@gmail.com> | 2025-01-07 00:59:28 +0100 |
---|---|---|
committer | Shauren <shauren.trinity@gmail.com> | 2025-01-07 00:59:51 +0100 |
commit | ae1f80c083b4352bf381c12f066eef7fe0ddc125 (patch) | |
tree | 4d62ce7bb8e7635305e0b9fa276aea88a85a987a | |
parent | 7f5790db6701a46b06b2c3319c3776c1fb93e3d5 (diff) |
Core/Time: Fixed WowTime operator<=>
(cherry picked from commit 19aef6882d4ec21f790b67d94a6bd039970156a6)
-rw-r--r-- | src/server/game/Time/WowTime.cpp | 4 |
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; |