Skip to content

Commit

Permalink
nil check
Browse files Browse the repository at this point in the history
  • Loading branch information
DerpleMQ2 committed Jan 5, 2024
1 parent a75a848 commit 4cdce71
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion extras/version.lua
Original file line number Diff line number Diff line change
@@ -1 +1 @@
return { commitId = '3119f87 2024-01-05' }
return { commitId = 'a75a848 2024-01-05' }
2 changes: 1 addition & 1 deletion utils/rgmercs_utils.lua
Original file line number Diff line number Diff line change
Expand Up @@ -1332,7 +1332,7 @@ function Utils.MATargetScan(radius, zradius)
return xtSpawn.ID() or 0
end

if xtSpawn.PctHPs() < lowestHP then
if (xtSpawn.PctHPs() or 100) < lowestHP then
lowestHP = xtSpawn.PctHPs() or 0
killId = xtSpawn.ID() or 0
end
Expand Down

0 comments on commit 4cdce71

Please sign in to comment.