2
0
mirror of https://github.com/rehlds/reapi.git synced 2024-12-29 08:05:36 +03:00

Fix AMXX id hookchain for BuyItem

This commit is contained in:
s1lentq 2024-02-19 23:55:31 +07:00
parent d40a0fed1f
commit a7043d1103

View File

@ -1607,7 +1607,7 @@ void BuyItem(IReGameHook_BuyItem *chain, CBasePlayer *pPlayer, int iSlot)
chain->callNext(getPrivate<CBasePlayer>(_pPlayer), _iSlot); chain->callNext(getPrivate<CBasePlayer>(_pPlayer), _iSlot);
}; };
callVoidForward(RG_AddMultiDamage, original, indexOfEdict(pPlayer->pev), iSlot); callVoidForward(RG_BuyItem, original, indexOfEdict(pPlayer->pev), iSlot);
} }
void CSGameRules_Think(IReGameHook_CSGameRules_Think *chain) void CSGameRules_Think(IReGameHook_CSGameRules_Think *chain)