skip magazines with no ammo

This commit is contained in:
Salluci 2023-07-16 21:43:43 +03:00
parent 1cf254a752
commit 3c767c6025

View File

@ -37,6 +37,8 @@ private _fnc_addAmmo = {
{
_x params ["_xMag", "", "_xAmmo"];
if (_xAmmo <= 0) then {continue};
private _carryMag = _xMag call FUNC(getCarryMagazine);
if (_carryMag isEqualTo "") then {continue};