mirror of
https://github.com/alliedmodders/amxmodx.git
synced 2024-12-26 06:45:37 +03:00
possible fix at29931
This commit is contained in:
parent
ac1e3a9001
commit
44a7b62963
@ -545,12 +545,8 @@ static cell AMX_NATIVE_CALL strip_user_weapons(AMX *amx, cell *params) // index
|
|||||||
MDLL_Use(pent, pPlayer);
|
MDLL_Use(pent, pPlayer);
|
||||||
REMOVE_ENTITY(pent);
|
REMOVE_ENTITY(pent);
|
||||||
|
|
||||||
void *_wpns = MF_PlayerPropAddr(params[1], Player_Weapons);
|
|
||||||
*reinterpret_cast<int *>(MF_PlayerPropAddr(params[1], Player_CurrentWeapon)) = 0;
|
*reinterpret_cast<int *>(MF_PlayerPropAddr(params[1], Player_CurrentWeapon)) = 0;
|
||||||
|
|
||||||
if (_wpns)
|
|
||||||
memset(_wpns, 0, sizeof(_wpns) * MAX_WEAPONS);
|
|
||||||
|
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user