diff options
author | Shauren <shauren.trinity@gmail.com> | 2025-03-24 12:14:51 +0100 |
---|---|---|
committer | Shauren <shauren.trinity@gmail.com> | 2025-03-24 12:14:51 +0100 |
commit | f3965fe2ca8b8e06fc38c89bc6183855eef11ff9 (patch) | |
tree | f9ea9981fb600b77dc4c096b8e84ce693379f6fb | |
parent | 92773e207c94e355fd37b266a219aad977cce9e2 (diff) |
Core/Scripts: Fix copypaste in static AuraProcFn hook constructor
-rw-r--r-- | src/server/game/Spells/SpellScript.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/server/game/Spells/SpellScript.h b/src/server/game/Spells/SpellScript.h index 864ddab7f09..ee962a29ec6 100644 --- a/src/server/game/Spells/SpellScript.h +++ b/src/server/game/Spells/SpellScript.h @@ -1974,10 +1974,10 @@ public: static_assert(std::is_invocable_r_v<void, ScriptFunc, ProcEventInfo&>, "AuraProcHandler signature must be \"static void HandleProc(ProcEventInfo& eventInfo)\""); - _callImpl = { .Member = reinterpret_cast<decltype(AuraProcFnType::Member)>(handler) }; + _callImpl = { .Static = reinterpret_cast<decltype(AuraProcFnType::Static)>(handler) }; _safeWrapper = [](AuraScript* /*auraScript*/, ProcEventInfo& eventInfo, AuraProcFnType callImpl) -> void { - return reinterpret_cast<ScriptFunc>(callImpl.Member)(eventInfo); + return reinterpret_cast<ScriptFunc>(callImpl.Static)(eventInfo); }; } } |