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); }