From 955a29a4aa1c147a682598dff931cef7089e8bde Mon Sep 17 00:00:00 2001 From: Ruben Gonzalez Date: Fri, 18 Aug 2017 15:06:20 -0400 Subject: [PATCH] Fix HandleCommand_Buy_Internal param order. --- extensions/cstrike/forwards.cpp | 9 +-------- sourcepawn | 2 +- 2 files changed, 2 insertions(+), 9 deletions(-) diff --git a/extensions/cstrike/forwards.cpp b/extensions/cstrike/forwards.cpp index 122540ce..23674171 100644 --- a/extensions/cstrike/forwards.cpp +++ b/extensions/cstrike/forwards.cpp @@ -21,15 +21,8 @@ CDetour *DCSWeaponDrop = NULL; int weaponNameOffset = -1; -//Windows CS:GO -// int __userpurge HandleCommand_Buy_Internal(int a1, float a2, int a3, int a4, char a5) -// a1 - this -// a2 - CCSGameRules::GetWarmupPeriodEndTime(g_pGameRules) -// a3 - weapon -// a4 - unknown -// a5 - bRebuy #if SOURCE_ENGINE == SE_CSGO -DETOUR_DECL_MEMBER3(DetourHandleBuy, int, const char *, weapon, int, iUnknown, bool, bRebuy) +DETOUR_DECL_MEMBER3(DetourHandleBuy, int, int, iUnknown, const char *, weapon, bool, bRebuy) #else DETOUR_DECL_MEMBER1(DetourHandleBuy, int, const char *, weapon) #endif diff --git a/sourcepawn b/sourcepawn index ea67e929..12365b39 160000 --- a/sourcepawn +++ b/sourcepawn @@ -1 +1 @@ -Subproject commit ea67e929f5bd127ec60331a7ba17d9f1d8d7ab0d +Subproject commit 12365b39ccc20ab6c5fa28ec56f1c593d177b91c