Skip to content

Commit

Permalink
Fix for nil in CheckCoM function
Browse files Browse the repository at this point in the history
  • Loading branch information
LiddulBOFH committed Jun 1, 2024
1 parent da7db27 commit 33f0662
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lua/entities/acf_turret/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -641,7 +641,7 @@ do -- Spawn and Update funcs
GetSubTurretMass(self)

if SelfTbl.ACF_TurretAncestor then
self.Complexity = (SelfTbl.Complexity or 1) * SelfTbl.ACF_TurretAncestor.Complexity
self.Complexity = (SelfTbl.Complexity or 1) * (SelfTbl.ACF_TurretAncestor.Complexity or 1)
end

self:GetTotalMass()
Expand Down

0 comments on commit 33f0662

Please sign in to comment.