diff --git a/extensions/cstrike/forwards.cpp b/extensions/cstrike/forwards.cpp index 19533608..3404ba16 100644 --- a/extensions/cstrike/forwards.cpp +++ b/extensions/cstrike/forwards.cpp @@ -21,7 +21,11 @@ CDetour *DCSWeaponDrop = NULL; int weaponNameOffset = -1; +#if SOURCE_ENGINE == SE_CSGO +DETOUR_DECL_MEMBER2(DetourHandleBuy, int, const char *, weapon, bool, bRebuy) +#else DETOUR_DECL_MEMBER1(DetourHandleBuy, int, const char *, weapon) +#endif { int client = gamehelpers->EntityToBCompatRef(reinterpret_cast(this)); @@ -45,9 +49,12 @@ DETOUR_DECL_MEMBER1(DetourHandleBuy, int, const char *, weapon) { defaultprice = CallPriceForwardCSGO(client, weapon); } + + int val = DETOUR_MEMBER_CALL(DetourHandleBuy)(weapon, bRebuy); +#else + int val = DETOUR_MEMBER_CALL(DetourHandleBuy)(weapon); #endif - int val = DETOUR_MEMBER_CALL(DetourHandleBuy)(weapon); #if SOURCE_ENGINE == SE_CSGO if (defaultprice != -1)