Core/Scripts: Fix copypaste in static AuraProcFn hook constructor

This commit is contained in:
Shauren
2025-03-24 12:14:51 +01:00
parent 92773e207c
commit f3965fe2ca

View File

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