mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-16 07:30:42 +01:00
Core/Scripts: Fix copypaste in static AuraProcFn hook constructor
This commit is contained in:
@@ -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);
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user