1
0
mirror of https://github.com/alliedmodders/metamod-source.git synced 2025-01-19 08:52:34 +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:
Pavol Marko 2005-04-14 16:18:36 +00:00
parent 6b44f98236
commit c923256432

View File

@ -314,7 +314,7 @@ namespace SourceHook
param->vtbl_idx = mfi.vtblindex; \
param->vtbl_offs = mfi.vtbloffs; \
param->thisptr_offs = mfi.thisptroffs; \
if (param->thisptr_offs) \
if (param->thisptr_offs < 0) \
return 2; /*No virtual inheritance supported*/ \
GetFuncInfo(&SH_FHCls(ifacetype,ifacefunc,overload)::Func, mfi); \
param->hookfunc_vtbl_idx = mfi.vtblindex; \