Skip to content

Commit

Permalink
Weapon Select - Fix selecting next grenade (#10494)
Browse files Browse the repository at this point in the history
Update fnc_selectNextGrenade.sqf
  • Loading branch information
johnb432 authored Nov 10, 2024
1 parent c14056e commit 40ff308
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions addons/weaponselect/functions/fnc_selectNextGrenade.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit 40ff308

Please sign in to comment.