Skip to content

Commit

Permalink
Fix a possible debris error
Browse files Browse the repository at this point in the history
  • Loading branch information
thecraftianman committed Jan 24, 2024
1 parent 92a2958 commit fdf7949
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lua/acf/damage/debris_sv.lua
Original file line number Diff line number Diff line change
Expand Up @@ -94,8 +94,8 @@ local function Gib(Entity,DmgInfo)

local dmg = DamageInfo()
dmg:SetDamage(Entity:Health())
if IsValid(DmgInfo.Attacker) then dmg:SetAttacker(DmgInfo.Attacker) else dmg:SetAttacker(Entity) end
if IsValid(DmgInfo.Inflictor) then dmg:SetInflictor(DmgInfo.Inflictor) else dmg:SetInflictor(Entity) end
if DmgInfo and IsValid(DmgInfo.Attacker) then dmg:SetAttacker(DmgInfo.Attacker) else dmg:SetAttacker(Entity) end
if DmgInfo and IsValid(DmgInfo.Inflictor) then dmg:SetInflictor(DmgInfo.Inflictor) else dmg:SetInflictor(Entity) end
dmg:SetDamageType(DMG_ALWAYSGIB)

timer.Simple(0,function()
Expand Down

0 comments on commit fdf7949

Please sign in to comment.