From a7043d1103fd2d8277e27b9ed31203e4ae627520 Mon Sep 17 00:00:00 2001 From: s1lentq Date: Mon, 19 Feb 2024 23:55:31 +0700 Subject: [PATCH] Fix AMXX id hookchain for BuyItem --- reapi/src/hook_callback.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/reapi/src/hook_callback.cpp b/reapi/src/hook_callback.cpp index 3c286045..669ea8ed 100644 --- a/reapi/src/hook_callback.cpp +++ b/reapi/src/hook_callback.cpp @@ -1607,7 +1607,7 @@ void BuyItem(IReGameHook_BuyItem *chain, CBasePlayer *pPlayer, int iSlot) chain->callNext(getPrivate(_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)