Fix getting this ptr always assuming iface was a CBaseEntity.
This commit is contained in:
parent
652b61d5ce
commit
9574a647af
@ -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);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user