From f08a4f5a663fd2804e040274953fe33b04abb388 Mon Sep 17 00:00:00 2001 From: Arkshine Date: Sat, 31 May 2014 09:14:00 +0200 Subject: [PATCH] Cstrike: Fix typo under OSX. --- dlls/cstrike/cstrike/CstrikeHacks.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dlls/cstrike/cstrike/CstrikeHacks.cpp b/dlls/cstrike/cstrike/CstrikeHacks.cpp index e58c6dce..f3721f07 100644 --- a/dlls/cstrike/cstrike/CstrikeHacks.cpp +++ b/dlls/cstrike/cstrike/CstrikeHacks.cpp @@ -188,8 +188,8 @@ void CtrlDetours(bool set) void *canBuyThisAddress = (void *)(base + symbols[0].n_value); void *buyItemAddress = (void *)(base + symbols[1].n_value); void *buyGunAmmoAddress = (void *)(base + symbols[2].n_value); - void *g_UseBotArgs = (void *)(base + symbols[3].n_value); - void *g_BotArgs = (void *)(base + symbols[4].n_value); + g_UseBotArgs = (int *)(base + symbols[3].n_value); + g_BotArgs = (const char **)(base + symbols[4].n_value); #endif g_ClientCommandDetour = DETOUR_CREATE_STATIC_FIXED(C_ClientCommand, target);