aboutsummaryrefslogtreecommitdiff
path: root/src/common/Utilities/Util.h
diff options
context:
space:
mode:
authorShauren <shauren.trinity@gmail.com>2025-04-19 17:50:49 +0200
committerShauren <shauren.trinity@gmail.com>2025-04-19 17:50:49 +0200
commit7eaa695581589e8cb9a277f9c13ad0e3daf669a7 (patch)
treea2b25a739b1f4c5759bdc7c0eddddcb16372f9f6 /src/common/Utilities/Util.h
parentefed68fd03a36f4cc826e34a31d96778fb5b5bbe (diff)
Core/Conditions: Added conditions for automatic learning spells with SkillLineAbility::AcquireMethod = 4
Diffstat (limited to 'src/common/Utilities/Util.h')
-rw-r--r--src/common/Utilities/Util.h2
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...));