possible fix at29931

This commit is contained in:
Borja Ferrer 2006-05-23 19:35:40 +00:00
parent ac1e3a9001
commit 44a7b62963

View File

@ -545,11 +545,7 @@ static cell AMX_NATIVE_CALL strip_user_weapons(AMX *amx, cell *params) // index
MDLL_Use(pent, pPlayer);
REMOVE_ENTITY(pent);
void *_wpns = MF_PlayerPropAddr(params[1], Player_Weapons);
*reinterpret_cast<int *>(MF_PlayerPropAddr(params[1], Player_CurrentWeapon)) = 0;
if (_wpns)
memset(_wpns, 0, sizeof(_wpns) * MAX_WEAPONS);
return 1;
}