Fixed the fix for the fix of dropall errors (#807).

This commit is contained in:
shavit 2019-05-30 01:50:20 +03:00
parent dca53d61c6
commit 04e5db5420

View File

@ -3312,7 +3312,7 @@ public Action Command_Drop(int client, const char[] command, int argc)
int iWeapon = GetEntPropEnt(client, Prop_Data, "m_hActiveWeapon");
if(iWeapon != -1 && IsValidEntity(iWeapon))
if(iWeapon != -1 && IsValidEntity(iWeapon) && GetEntPropEnt(iWeapon, Prop_Send, "m_hOwnerEntity") == client)
{
CS_DropWeapon(client, iWeapon, true);
}