Core/Scripts: Fix copypaste in static AuraProcFn hook constructor

(cherry picked from commit f3965fe2ca)
This commit is contained in:
Shauren
2025-03-24 12:14:51 +01:00
committed by Ovahlord
parent d21fb472f0
commit 58e3cee2fa

View File

@@ -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);
};
}
}