mirror of
https://github.com/alliedmodders/metamod-source.git
synced 2025-01-30 19:52:17 +01:00
Fixed CallClass<T> source code compatibility bug in core-legacy (bug 4021, r=ds).
This commit is contained in:
parent
e31183495a
commit
7d6e151192
@ -5204,7 +5204,7 @@ namespace SourceHook
|
||||
MemFuncInfo mfi = {true, -1, 0, 0}; \
|
||||
GetFuncInfo(CCW<Y>::GRP(ptr), mfp, mfi); \
|
||||
void *vfnptr = reinterpret_cast<void*>( \
|
||||
*reinterpret_cast<void***>(reinterpret_cast<char*>(ptr) + mfi.thisptroffs + mfi.vtbloffs) + mfi.vtblindex);
|
||||
*reinterpret_cast<void***>(reinterpret_cast<char*>(CCW<Y>::GRP(ptr)) + mfi.thisptroffs + mfi.vtbloffs) + mfi.vtblindex);
|
||||
|
||||
#define SH__CALL_GET_VFNPTR_MANUAL \
|
||||
using namespace ::SourceHook; \
|
||||
|
@ -1370,7 +1370,7 @@ namespace SourceHook
|
||||
MemFuncInfo mfi = {true, -1, 0, 0}; \
|
||||
GetFuncInfo(CCW<Y>::GRP(ptr), mfp, mfi); \
|
||||
void *vfnptr = reinterpret_cast<void*>( \
|
||||
*reinterpret_cast<void***>(reinterpret_cast<char*>(ptr) + mfi.thisptroffs + mfi.vtbloffs) + mfi.vtblindex);
|
||||
*reinterpret_cast<void***>(reinterpret_cast<char*>(CCW<Y>::GRP(ptr)) + mfi.thisptroffs + mfi.vtbloffs) + mfi.vtblindex);
|
||||
|
||||
#define SH__CALL_GET_VFNPTR_MANUAL \
|
||||
using namespace ::SourceHook; \
|
||||
|
@ -5214,7 +5214,7 @@ namespace SourceHook
|
||||
MemFuncInfo mfi = {true, -1, 0, 0}; \
|
||||
GetFuncInfo(CCW<Y>::GRP(ptr), mfp, mfi); \
|
||||
void *vfnptr = reinterpret_cast<void*>( \
|
||||
*reinterpret_cast<void***>(reinterpret_cast<char*>(ptr) + mfi.thisptroffs + mfi.vtbloffs) + mfi.vtblindex);
|
||||
*reinterpret_cast<void***>(reinterpret_cast<char*>(CCW<Y>::GRP(ptr)) + mfi.thisptroffs + mfi.vtbloffs) + mfi.vtblindex);
|
||||
|
||||
#define SH__CALL_GET_VFNPTR_MANUAL \
|
||||
using namespace ::SourceHook; \
|
||||
|
Loading…
x
Reference in New Issue
Block a user