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;