fixed the other native relying on this offset as well

This commit is contained in:
David Anderson 2007-10-03 00:54:19 +00:00
parent c1791361da
commit 748d000c02

View File

@ -1734,7 +1734,7 @@ static cell AMX_NATIVE_CALL cs_set_c4_defusing(AMX* amx, cell* params)
return 0; 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; return 1;
} }