From 58e3cee2fa032d4a2e928599b86f53d5b9ba3490 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 (cherry picked from commit f3965fe2ca8b8e06fc38c89bc6183855eef11ff9) --- src/server/game/Spells/SpellScript.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/server') diff --git a/src/server/game/Spells/SpellScript.h b/src/server/game/Spells/SpellScript.h index f24993af1fd..4a745577b7e 100644 --- a/src/server/game/Spells/SpellScript.h +++ b/src/server/game/Spells/SpellScript.h @@ -1926,10 +1926,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