Skip to content

Commit

Permalink
Fix weapon select grenade count wehn using advThrow (#5244)
Browse files Browse the repository at this point in the history
  • Loading branch information
PabstMirror authored Jun 4, 2017
1 parent 48680d1 commit 8bb92ce
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion addons/weaponselect/functions/fnc_throwGrenade.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ TRACE_10("firedEH:",_unit, _weapon, _muzzle, _mode, _ammo, _magazine, _projectil

if (_weapon != "Throw") exitWith {};

private _count = {_x == _magazine} count magazines _unit;
private _count = ({_x == _magazine} count uniformItems _unit) + ({_x == _magazine} count vestItems _unit) + ({_x == _magazine} count backpackItems _unit);

[_magazine, _count] call FUNC(displayGrenadeTypeAndNumber);

Expand Down

0 comments on commit 8bb92ce

Please sign in to comment.