fix replay bots spawning glocks with burst fire... again

This commit is contained in:
rtldg 2021-07-29 14:52:45 +00:00
parent 506076723f
commit 7dea02e513

View File

@ -1949,9 +1949,7 @@ public Action Hook_GunTouch(int entity, int client)
if (StrEqual(classname, "weapon_glock")) if (StrEqual(classname, "weapon_glock"))
{ {
int owner = GetEntPropEnt(entity, Prop_Data, "m_hOwnerEntity"); if (!IsValidClient(client) || !IsFakeClient(client))
if (!IsValidClient(owner) || !IsFakeClient(owner))
{ {
SetEntProp(entity, Prop_Send, "m_bBurstMode", 1); SetEntProp(entity, Prop_Send, "m_bBurstMode", 1);
} }