remove other 32bit-isms from sdktools

This commit is contained in:
bottiger1 2024-05-08 20:46:52 -07:00
parent cdc837fbbb
commit 8612720108
2 changed files with 2 additions and 2 deletions

View File

@ -584,7 +584,7 @@ bool CHookManager::SendFile(const char *filename, unsigned int transferID)
#if !defined CLIENTVOICE_HOOK_SUPPORT
bool CHookManager::ProcessVoiceData(CLC_VoiceData *msg)
{
IClient *pClient = (IClient *)((intptr_t)(META_IFACEPTR(IClient)) - 4);
IClient *pClient = (IClient *)((intptr_t)(META_IFACEPTR(IClient)) - sizeof(intptr_t));
if (pClient == NULL)
{
return true;

View File

@ -754,7 +754,7 @@ CEntityFactoryDictionary *GetEntityFactoryDictionary()
// Get real address of function
// Address of signature + offset of relative offset + sizeof(int32_t) offset + relative offset
addr = (void *)((intptr_t)addr + offset + 4 + funcOffset);
addr = (void *)((intptr_t)addr + offset + sizeof(intptr_t) + funcOffset);
}
pWrapper = g_pBinTools->CreateCall(addr, CallConv_Cdecl, &retData, NULL, 0);