Fixed cs_set_hostage_follow for amd64

This commit is contained in:
Johnny Bergström
2004-09-14 17:57:34 +00:00
parent e287a2f202
commit 26465afbf7
2 changed files with 6 additions and 1 deletions

View File

@ -1235,7 +1235,12 @@ static cell AMX_NATIVE_CALL cs_set_hostage_follow(AMX *amx, cell *params) // cs_
// Set to not follow anything?
if (params[2] == 0) {
#if !defined __amd64__
*((int *)pHostage->pvPrivateData + OFFSET_HOSTAGEFOLLOW) = 0;
#else
*((long *)pHostage->pvPrivateData + OFFSET_HOSTAGEFOLLOW) = 0;
#endif
return 1;
}