From d6a17dfee1e740cb30f90951485c080caf09eca2 Mon Sep 17 00:00:00 2001 From: William Moodhe / JetBoom Date: Sat, 24 Oct 2015 17:21:38 -0400 Subject: [PATCH] Update obj_entity_extend.lua --- gamemodes/zombiesurvival/gamemode/obj_entity_extend.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gamemodes/zombiesurvival/gamemode/obj_entity_extend.lua b/gamemodes/zombiesurvival/gamemode/obj_entity_extend.lua index eb402e7..1a8e1ca 100644 --- a/gamemodes/zombiesurvival/gamemode/obj_entity_extend.lua +++ b/gamemodes/zombiesurvival/gamemode/obj_entity_extend.lua @@ -52,7 +52,7 @@ function meta:PenetratingClipHullMeleeTrace(distance, size, prehit, start, dir) local cliphullpretrace = self:ClipHullTraceHull(distance, size, start, dir) self:LagCompensation(true) t = self:PenetratingMeleeTrace(distance, size, prehit, start, dir) - if cliphullpretrace and LASTHITCLIPHULL and cliphullpretrace.Entity ~= prehit then + if cliphullpretrace and LASTHITCLIPHULL and cliphullpretrace.Entity ~= prehit and not (t[1] and t[1].Entity:IsValid() and t[1].Entity == cliphullpretrace.Entity) then table.insert(t, 1, cliphullpretrace) end self:LagCompensation(false)