Skip to content

Commit

Permalink
Merge pull request acemod#4 from SzwedzikPL/irondome-cleanupprojectiles
Browse files Browse the repository at this point in the history
Remove null projectiles from iron dome nonTrackingProjectiles
  • Loading branch information
TheCandianVendingMachine authored Jul 25, 2022
2 parents a79f987 + 743add1 commit 6aba4b0
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions addons/iron_dome/functions/fnc_projectileTrackerPFH.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,8 @@ if (_idleLaunchers isNotEqualTo []) then {

GVAR(nonTrackingProjectiles) = GVAR(nonTrackingProjectiles) select {
private _projectile = _x;
if (isNull _projectile) then {continueWith false};

private _keep = true;
private _bestRange = 1e10;

Expand Down

0 comments on commit 6aba4b0

Please sign in to comment.