Core/Time: Fixed WowTime operator<=>

(cherry picked from commit 19aef6882d)
This commit is contained in:
Shauren
2025-01-07 00:59:28 +01:00
parent 7f5790db67
commit ae1f80c083

View File

@@ -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;