From 19aef6882d4ec21f790b67d94a6bd039970156a6 Mon Sep 17 00:00:00 2001 From: Shauren Date: Tue, 7 Jan 2025 00:59:28 +0100 Subject: [PATCH] Core/Time: Fixed WowTime operator<=> --- src/server/game/Time/WowTime.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/server/game/Time/WowTime.cpp b/src/server/game/Time/WowTime.cpp index b88f0c56a8e6e..6ad2760dcf0d4 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;