Fix weapon select grenade count wehn using advThrow (#5244)

This commit is contained in:
PabstMirror 2017-06-04 10:07:35 -05:00 committed by GitHub
parent 48680d1123
commit 8bb92cee6f

View File

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