From 3c4d219c837c2df53bcd950e8213bab88aee2cb2 Mon Sep 17 00:00:00 2001 From: Alejo Date: Wed, 3 Jan 2024 23:53:34 -0300 Subject: [PATCH] Fix 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 bd18749b..aaa09077 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 PrecacheItemInfo(IReGameHook_PrecacheItemInfo *chain, ItemInfo *info)