aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorShauren <shauren.trinity@gmail.com>2025-03-24 12:14:51 +0100
committerOvahlord <dreadkiller@gmx.de>2025-04-06 19:35:46 +0200
commit58e3cee2fa032d4a2e928599b86f53d5b9ba3490 (patch)
treec23da557b1f4afc97a909bed11c594d70f64a7c1 /src
parentd21fb472f0fa29c8d2cda359d6c25983db186dd4 (diff)
Core/Scripts: Fix copypaste in static AuraProcFn hook constructor
(cherry picked from commit f3965fe2ca8b8e06fc38c89bc6183855eef11ff9)
Diffstat (limited to 'src')
-rw-r--r--src/server/game/Spells/SpellScript.h4
1 files changed, 2 insertions, 2 deletions
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<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);
};
}
}