From 743add1aa4d907d5c6a3b440c9d026abc12df225 Mon Sep 17 00:00:00 2001 From: SzwedzikPL Date: Mon, 25 Jul 2022 06:46:54 +0200 Subject: [PATCH] Remove null projectiles from iron dome nonTrackingProjectiles --- addons/iron_dome/functions/fnc_projectileTrackerPFH.sqf | 2 ++ 1 file changed, 2 insertions(+) diff --git a/addons/iron_dome/functions/fnc_projectileTrackerPFH.sqf b/addons/iron_dome/functions/fnc_projectileTrackerPFH.sqf index 082319563d..f7cba67d1c 100644 --- a/addons/iron_dome/functions/fnc_projectileTrackerPFH.sqf +++ b/addons/iron_dome/functions/fnc_projectileTrackerPFH.sqf @@ -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;