From 0c3d50dfade59a564f68705ba80480b775a16035 Mon Sep 17 00:00:00 2001 From: JetBoom Date: Tue, 23 Dec 2014 18:24:31 -0500 Subject: [PATCH] Fix client side error with z9000 shots. --- gamemodes/zombiesurvival/gamemode/obj_player_extend.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)