Fix client side error with z9000 shots.

This commit is contained in:
JetBoom 2014-12-23 18:24:31 -05:00
parent 87bc493492
commit 0c3d50dfad

View file

@ -202,7 +202,7 @@ function meta:RawCapLegDamage(time)
end
function meta:GetLegDamage()
return math.max(0, self.LegDamage - CurTime())
return math.max(0, (self.LegDamage or 0) - CurTime())
end
function meta:WouldDieFrom(damage, hitpos)