From ec7c1ef567a5f89275234689200cdfbf3e07474e Mon Sep 17 00:00:00 2001 From: johnb432 <58661205+johnb432@users.noreply.github.com> Date: Sat, 9 Nov 2024 16:39:10 +0100 Subject: [PATCH] Update fnc_selectNextGrenade.sqf --- addons/weaponselect/functions/fnc_selectNextGrenade.sqf | 2 ++ 1 file changed, 2 insertions(+) diff --git a/addons/weaponselect/functions/fnc_selectNextGrenade.sqf b/addons/weaponselect/functions/fnc_selectNextGrenade.sqf index 03840de2013..1f9abceb7c3 100644 --- a/addons/weaponselect/functions/fnc_selectNextGrenade.sqf +++ b/addons/weaponselect/functions/fnc_selectNextGrenade.sqf @@ -36,6 +36,8 @@ private _grenades = (throwables _unit) apply {_x select 0} select {_x in _grenad // abort if no grenades are available if (_grenades isEqualTo []) exitWith {false}; +_grenades = _grenades arrayIntersect _grenades; + // get next grenade muzzle private _nextGrenadeIndex = (_grenades find _currentGrenade) + 1;