Fix getting this ptr always assuming iface was a CBaseEntity.

This commit is contained in:
Dr!fter 2014-05-29 18:10:17 -04:00
parent 652b61d5ce
commit 9574a647af

View File

@ -216,7 +216,7 @@ HookReturnStruct *GetReturnStruct(DHooksCallback *dg)
} }
cell_t GetThisPtr(void *iface, ThisPointerType type) cell_t GetThisPtr(void *iface, ThisPointerType type)
{ {
if(ThisPointer_CBaseEntity) if(type == ThisPointer_CBaseEntity)
{ {
return gamehelpers->EntityToBCompatRef((CBaseEntity *)iface); return gamehelpers->EntityToBCompatRef((CBaseEntity *)iface);
} }