Skip to content

Commit

Permalink
Fix AMXX id hookchain for BuyItem
Browse files Browse the repository at this point in the history
  • Loading branch information
s1lentq committed Feb 19, 2024
1 parent d40a0fe commit a7043d1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion reapi/src/hook_callback.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1607,7 +1607,7 @@ void BuyItem(IReGameHook_BuyItem *chain, CBasePlayer *pPlayer, int 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)
Expand Down

0 comments on commit a7043d1

Please sign in to comment.