From f3965fe2ca8b8e06fc38c89bc6183855eef11ff9 Mon Sep 17 00:00:00 2001 From: Shauren Date: Mon, 24 Mar 2025 12:14:51 +0100 Subject: Core/Scripts: Fix copypaste in static AuraProcFn hook constructor --- src/server/game/Spells/SpellScript.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') 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, "AuraProcHandler signature must be \"static void HandleProc(ProcEventInfo& eventInfo)\""); - _callImpl = { .Member = reinterpret_cast(handler) }; + _callImpl = { .Static = reinterpret_cast(handler) }; _safeWrapper = [](AuraScript* /*auraScript*/, ProcEventInfo& eventInfo, AuraProcFnType callImpl) -> void { - return reinterpret_cast(callImpl.Member)(eventInfo); + return reinterpret_cast(callImpl.Static)(eventInfo); }; } } -- cgit v1.2.3