Fixed zombies being able to hold onto props during team change

This commit is contained in:
Ben 2015-04-05 22:00:54 +01:00
parent 182f4e2526
commit 6ecc246e57

View file

@ -131,7 +131,7 @@ function ENT:Think()
local object = self:GetObject() local object = self:GetObject()
local owner = self:GetOwner() local owner = self:GetOwner()
if not object:IsValid() or object:IsNailed() or not owner:IsValid() or not owner:Alive() then if not object:IsValid() or object:IsNailed() or not owner:IsValid() or not owner:Alive() or not owner:Team() == TEAM_HUMAN then
self:Remove() self:Remove()
return return
end end