diff options
author | Shauren <shauren.trinity@gmail.com> | 2025-04-19 17:50:49 +0200 |
---|---|---|
committer | Ovahlord <dreadkiller@gmx.de> | 2025-05-11 12:09:54 +0200 |
commit | 8e0be127399e82a5082a9e740054b7e9fda259bc (patch) | |
tree | 4587d1242f8c8c01d15573aebc06af8817bc9f59 /src/common/Utilities/Util.h | |
parent | d01f12cc91d3443cb217ba7db0c4f42263dfc53c (diff) |
Core/Conditions: Added conditions for automatic learning spells with SkillLineAbility::AcquireMethod = 4
(cherry picked from commit 7eaa695581589e8cb9a277f9c13ad0e3daf669a7)
# Conflicts:
# sql/updates/world/cata_classic/2025_04_19_01_world.sql
# src/server/game/Conditions/ConditionMgr.cpp
Diffstat (limited to 'src/common/Utilities/Util.h')
-rw-r--r-- | src/common/Utilities/Util.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/common/Utilities/Util.h b/src/common/Utilities/Util.h index 4907b4edbae..9ee4d1d62c0 100644 --- a/src/common/Utilities/Util.h +++ b/src/common/Utilities/Util.h @@ -530,7 +530,7 @@ constexpr typename std::underlying_type<E>::type AsUnderlyingType(E enumValue) } template<typename Ret, typename T1, typename... T> -Ret* Coalesce(T1* first, T*... rest) +constexpr Ret* Coalesce(T1* first, T*... rest) { if constexpr (sizeof...(T) > 0) return (first ? static_cast<Ret*>(first) : Coalesce<Ret>(rest...)); |