From 748d000c0258ffa0267d39be4abebbf5f9d0d031 Mon Sep 17 00:00:00 2001 From: David Anderson Date: Wed, 3 Oct 2007 00:54:19 +0000 Subject: [PATCH] fixed the other native relying on this offset as well --- dlls/cstrike/cstrike/cstrike.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dlls/cstrike/cstrike/cstrike.cpp b/dlls/cstrike/cstrike/cstrike.cpp index 73597be6..933fae18 100755 --- a/dlls/cstrike/cstrike/cstrike.cpp +++ b/dlls/cstrike/cstrike/cstrike.cpp @@ -1734,7 +1734,7 @@ static cell AMX_NATIVE_CALL cs_set_c4_defusing(AMX* amx, cell* params) return 0; } - *((char*)((REAL*)pC4->pvPrivateData + OFFSET_C4_DEFUSING)) = params[2] ? 1 : 0; + *(bool *)((char *)(pC4->pvPrivateData) + OFFSET_C4_DEFUSING) = params[2] ? true : false; return 1; }