From 9574a647af88fb790033e38e0b09dd86311cc4df Mon Sep 17 00:00:00 2001 From: Dr!fter Date: Thu, 29 May 2014 18:10:17 -0400 Subject: [PATCH] Fix getting this ptr always assuming iface was a CBaseEntity. --- vhook.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vhook.cpp b/vhook.cpp index 6eea825..b52358b 100644 --- a/vhook.cpp +++ b/vhook.cpp @@ -216,7 +216,7 @@ HookReturnStruct *GetReturnStruct(DHooksCallback *dg) } cell_t GetThisPtr(void *iface, ThisPointerType type) { - if(ThisPointer_CBaseEntity) + if(type == ThisPointer_CBaseEntity) { return gamehelpers->EntityToBCompatRef((CBaseEntity *)iface); }