mirror of
https://github.com/alliedmodders/metamod-source.git
synced 2025-01-30 19:52:17 +01:00
Small fix; the public hookerfunc didn't recognize virtual inheritance
--HG-- extra : convert_revision : svn%3Ac2935e3e-5518-0410-8daf-afa5dab7d4e3/trunk%405
This commit is contained in:
parent
6b44f98236
commit
c923256432
@ -314,7 +314,7 @@ namespace SourceHook
|
|||||||
param->vtbl_idx = mfi.vtblindex; \
|
param->vtbl_idx = mfi.vtblindex; \
|
||||||
param->vtbl_offs = mfi.vtbloffs; \
|
param->vtbl_offs = mfi.vtbloffs; \
|
||||||
param->thisptr_offs = mfi.thisptroffs; \
|
param->thisptr_offs = mfi.thisptroffs; \
|
||||||
if (param->thisptr_offs) \
|
if (param->thisptr_offs < 0) \
|
||||||
return 2; /*No virtual inheritance supported*/ \
|
return 2; /*No virtual inheritance supported*/ \
|
||||||
GetFuncInfo(&SH_FHCls(ifacetype,ifacefunc,overload)::Func, mfi); \
|
GetFuncInfo(&SH_FHCls(ifacetype,ifacefunc,overload)::Func, mfi); \
|
||||||
param->hookfunc_vtbl_idx = mfi.vtblindex; \
|
param->hookfunc_vtbl_idx = mfi.vtblindex; \
|
||||||
|
Loading…
x
Reference in New Issue
Block a user