Skip to content

Commit 9e32f64

Browse files
committed
fix sdktools crash on 64 bits
1 parent 908ffdb commit 9e32f64

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

extensions/sdktools/hooks.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -234,7 +234,7 @@ void CHookManager::OnClientConnected(int client)
234234
}
235235
}
236236

237-
int hookid = SH_ADD_VPHOOK(IClientMessageHandler, ProcessVoiceData, (IClientMessageHandler *)((intptr_t)(pClient) + 4), SH_MEMBER(this, &CHookManager::ProcessVoiceData), true);
237+
int hookid = SH_ADD_VPHOOK(IClientMessageHandler, ProcessVoiceData, (IClientMessageHandler *)((intptr_t)(pClient) + sizeof(intptr_t)), SH_MEMBER(this, &CHookManager::ProcessVoiceData), true);
238238
hook.SetHookID(hookid);
239239
netProcessVoiceData.push_back(new CVTableHook(hook));
240240
}

0 commit comments

Comments
 (0)