Skip to content

Commit

Permalink
Core/Time: Fixed WowTime operator<=>
Browse files Browse the repository at this point in the history
  • Loading branch information
Shauren committed Jan 6, 2025
1 parent edbbbf8 commit 19aef68
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/server/game/Time/WowTime.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 19aef68

Please sign in to comment.