1
0
mirror of https://github.com/alliedmodders/metamod-source.git synced 2025-01-19 08:52:34 +01:00

Fixed GCC bug

--HG--
extra : convert_revision : svn%3Ac2935e3e-5518-0410-8daf-afa5dab7d4e3/trunk%4038
This commit is contained in:
David Anderson 2005-04-23 16:07:14 +00:00
parent 6677516707
commit 05260cd3b7

View File

@ -65,9 +65,9 @@ namespace SourceHook
};
int delta;
};
template<class MFP> static inline void GetFuncInfo(MFP *mfp, MemFuncInfo &out)
template<class MFP> static inline void GetFuncInfo(MFP mfp, MemFuncInfo &out)
{
GCC_MemFunPtr *mfp_detail = (GCC_MemFunPtr*)mfp;
GCC_MemFunPtr *mfp_detail = (GCC_MemFunPtr*)&mfp;
out.thisptroffs = mfp_detail->delta;
if (mfp_detail->vtable_index_plus1 & 1)
{