Skip to content

Commit 38f2bce

Browse files
committed
Fix PostEventAbstract crash
1 parent f1c4dca commit 38f2bce

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

src/cs2fixes.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -727,8 +727,7 @@ KHook::Return<void> CS2Fixes::Hook_PostEventAbstract(IGameEventSystem* pThis, CS
727727

728728
uint64 clientMask = *(uint64*)clients & g_playerManager->GetSilenceSoundMask();
729729

730-
// TODO: this crashes, borked in khook for some reason
731-
//KHook::CallOriginal<void (IGameEventSystem::*)(CSplitScreenSlot, bool, int, const uint64*, INetworkMessageInternal*, const CNetMessage*, unsigned long, NetChannelBufType_t)>(nullptr, pThis, nSlot, bLocalOnly, nClientCount, &clientMask, pEvent, msg, nSize, bufType);
730+
KHook::CallOriginal<void (IGameEventSystem::*)(CSplitScreenSlot, bool, int, const uint64*, INetworkMessageInternal*, const CNetMessage*, unsigned long, NetChannelBufType_t)>(&IGameEventSystem::PostEventAbstract, pThis, nSlot, bLocalOnly, nClientCount, &clientMask, pEvent, msg, nSize, bufType);
732731

733732
msg->set_weapon_id(weapon_id);
734733
msg->set_sound_type(sound_type);

0 commit comments

Comments
 (0)