Merge pull request #4 from SzwedzikPL/irondome-cleanupprojectiles

Remove null projectiles from iron dome nonTrackingProjectiles
This commit is contained in:
Bailey Danyluk 2022-07-25 01:54:12 -06:00 committed by GitHub
commit 6aba4b041d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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;