diff options
| author | Shauren <shauren.trinity@gmail.com> | 2023-04-10 00:08:32 +0200 |
|---|---|---|
| committer | Shauren <shauren.trinity@gmail.com> | 2023-04-10 00:08:32 +0200 |
| commit | 083b8d6c846cfdf75abb1fae481a3eeb25c13c56 (patch) | |
| tree | 332ad0b73ee8f4ea1f9bc75d1018d09a473bc60f /src/server/game/AI/SmartScripts | |
| parent | 9c367e2f21f5ce3859e5e7032fb8d564fe1b3bf4 (diff) | |
Core/Misc: Fix build with libc++
Closes #28909
Diffstat (limited to 'src/server/game/AI/SmartScripts')
| -rw-r--r-- | src/server/game/AI/SmartScripts/SmartScriptMgr.h | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/src/server/game/AI/SmartScripts/SmartScriptMgr.h b/src/server/game/AI/SmartScripts/SmartScriptMgr.h index 31bb3c82161..9406fbedb00 100644 --- a/src/server/game/AI/SmartScripts/SmartScriptMgr.h +++ b/src/server/game/AI/SmartScripts/SmartScriptMgr.h @@ -21,6 +21,7 @@ #include "Define.h" #include "ObjectGuid.h" #include "WaypointDefines.h" +#include "advstd.h" #include <limits> #include <map> #include <string> @@ -1645,15 +1646,15 @@ struct SmartScriptHolder // Default comparision operator using priority field as first ordering field std::strong_ordering operator<=>(SmartScriptHolder const& right) const { - if (auto cmp = priority <=> right.priority; std::is_neq(cmp)) + if (std::strong_ordering cmp = priority <=> right.priority; advstd::is_neq(cmp)) return cmp; - if (auto cmp = entryOrGuid <=> right.entryOrGuid; std::is_neq(cmp)) + if (std::strong_ordering cmp = entryOrGuid <=> right.entryOrGuid; advstd::is_neq(cmp)) return cmp; - if (auto cmp = source_type <=> right.source_type; std::is_neq(cmp)) + if (std::strong_ordering cmp = source_type <=> right.source_type; advstd::is_neq(cmp)) return cmp; - if (auto cmp = event_id <=> right.event_id; std::is_neq(cmp)) + if (std::strong_ordering cmp = event_id <=> right.event_id; advstd::is_neq(cmp)) return cmp; - if (auto cmp = link <=> right.link; std::is_neq(cmp)) + if (std::strong_ordering cmp = link <=> right.link; advstd::is_neq(cmp)) return cmp; return std::strong_ordering::equal; } |
