Skip to content

Commit

Permalink
Merge pull request #441 from marchc1/fix-crashing
Browse files Browse the repository at this point in the history
Try to fix x86-64 crash
  • Loading branch information
thecraftianman authored Dec 16, 2024
2 parents b3bca08 + 42598e2 commit 7ca502c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lua/acf/damage/debris_cl.lua
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,9 @@ local function Ignite(Entity, Lifetime, IsGib)
end

local function CreateDebris(Model, Position, Angles, Material, Color, Normal, Power, ShouldIgnite)
-- TODO: This fixes a crashing bug, but the underlying issue that Model can sometimes be blank ("") isn't fixed yet
if not util.IsValidModel(Model) then return end

local Debris = ents.CreateClientProp(Model)

if not IsValid(Debris) then return end
Expand Down Expand Up @@ -225,4 +228,4 @@ PrecacheParticleSystem("env_fire_small_smoke")
PrecacheParticleSystem("smoke_gib_01")
PrecacheParticleSystem("smoke_exhaust_01a")
PrecacheParticleSystem("smoke_small_01b")
PrecacheParticleSystem("embers_medium_01")
PrecacheParticleSystem("embers_medium_01")

0 comments on commit 7ca502c

Please sign in to comment.