diff --git a/gamemodes/zombiesurvival/gamemode/obj_player_extend.lua b/gamemodes/zombiesurvival/gamemode/obj_player_extend.lua index 8c7d471..058788d 100644 --- a/gamemodes/zombiesurvival/gamemode/obj_player_extend.lua +++ b/gamemodes/zombiesurvival/gamemode/obj_player_extend.lua @@ -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)