From cec703a059ef1df789ff530716ab6cc0f577a089 Mon Sep 17 00:00:00 2001 From: Peace-Maker Date: Mon, 5 May 2014 11:40:42 -0400 Subject: [PATCH] Change hook prototype of GroundEntChanged to include void* parameter (bug 6050, r=psychonic). --- extensions/sdkhooks/extension.cpp | 4 ++-- extensions/sdkhooks/extension.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/extensions/sdkhooks/extension.cpp b/extensions/sdkhooks/extension.cpp index d9d764d6..51673da0 100644 --- a/extensions/sdkhooks/extension.cpp +++ b/extensions/sdkhooks/extension.cpp @@ -164,7 +164,7 @@ SH_DECL_MANUALHOOK1_void(FireBullets, 0, 0, 0, FireBulletsInfo_t const&); #ifdef GETMAXHEALTH_IS_VIRTUAL SH_DECL_MANUALHOOK0(GetMaxHealth, 0, 0, 0, int); #endif -SH_DECL_MANUALHOOK0_void(GroundEntChanged, 0, 0, 0); +SH_DECL_MANUALHOOK1_void(GroundEntChanged, 0, 0, 0, void *); SH_DECL_MANUALHOOK1(OnTakeDamage, 0, 0, 0, int, CTakeDamageInfoHack &); SH_DECL_MANUALHOOK0_void(PreThink, 0, 0, 0); SH_DECL_MANUALHOOK0_void(PostThink, 0, 0, 0); @@ -1000,7 +1000,7 @@ int SDKHooks::Hook_GetMaxHealth() } #endif -void SDKHooks::Hook_GroundEntChangedPost() +void SDKHooks::Hook_GroundEntChangedPost(void *pVar) { Call(META_IFACEPTR(CBaseEntity), SDKHook_GroundEntChangedPost); } diff --git a/extensions/sdkhooks/extension.h b/extensions/sdkhooks/extension.h index 0e8e2223..032bd3b8 100644 --- a/extensions/sdkhooks/extension.h +++ b/extensions/sdkhooks/extension.h @@ -282,7 +282,7 @@ public: #ifdef GETMAXHEALTH_IS_VIRTUAL int Hook_GetMaxHealth(); #endif - void Hook_GroundEntChangedPost(); + void Hook_GroundEntChangedPost(void *pVar); int Hook_OnTakeDamage(CTakeDamageInfoHack &info); int Hook_OnTakeDamagePost(CTakeDamageInfoHack &info); void Hook_PreThink();