Fixed stupid NULL error

This commit is contained in:
Twilight Suzuka 2006-02-11 00:41:11 +00:00
parent be1bc6f75c
commit d548457c30

View File

@ -36,11 +36,11 @@ static cell AMX_NATIVE_CALL memhack_set_long(AMX *amx, cell *params)
{ {
if(NATIVE_PATCH_SIGNED) if(NATIVE_PATCH_SIGNED)
{ {
return (cell)UTIL_PatchMemory_Byte(NATIVE_PATCH_MEMORY, (long)(NATIVE_PATCH_PARAMETER), NATIVE_PATCH_FLAGS); return (cell)UTIL_PatchMemory_Dword(NATIVE_PATCH_MEMORY, (long)(NATIVE_PATCH_PARAMETER), NATIVE_PATCH_FLAGS);
} }
else else
{ {
return (cell)UTIL_PatchMemory_UnsignedByte(NATIVE_PATCH_MEMORY, (unsigned long)(NATIVE_PATCH_PARAMETER), NATIVE_PATCH_FLAGS); return (cell)UTIL_PatchMemory_Dword(NATIVE_PATCH_MEMORY, (unsigned long)(NATIVE_PATCH_PARAMETER), NATIVE_PATCH_FLAGS);
} }
} }