From e1cc989453856106a2b2483af5fa6ec73f02d449 Mon Sep 17 00:00:00 2001 From: Brandon Sturgeon Date: Wed, 24 Jan 2024 00:59:17 -0800 Subject: [PATCH] Fix null particle reference --- lua/acf/damage/damage_cl.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lua/acf/damage/damage_cl.lua b/lua/acf/damage/damage_cl.lua index 949e4006b..bc1f57daa 100644 --- a/lua/acf/damage/damage_cl.lua +++ b/lua/acf/damage/damage_cl.lua @@ -121,8 +121,8 @@ do -- Debris Effects ------------------------ Entity:StopAndDestroyParticles() end) - if Smoke then Smoke:StopEmission() end - if Ember then Ember:StopEmission() end + if IsValid(Smoke) then Smoke:StopEmission() end + if IsValid(Ember) then Ember:StopEmission() end timer.Simple(5, function() if not IsValid(Entity) then return end