remove unnecessary change

This commit is contained in:
Salluci 2023-07-13 10:50:06 +03:00
parent d00c9ca2a0
commit c96a9daf7b

View File

@ -35,7 +35,6 @@ private _containerMagazineCount = [];
{
_x params ["_xMag", "_xTurret", "_xAmmo"];
_magsToRemove pushBackUnique [_xMag, _xTurret];
private _carryMag = _xMag call FUNC(getCarryMagazine);
if (_carryMag != "") then {
@ -46,6 +45,7 @@ private _containerMagazineCount = [];
TRACE_1("",_loadedMagAmmo);
};
if (_xAmmo > 0) then {
_magsToRemove pushBackUnique [_xMag, _xTurret];
private _index = _containerMagazineClassnames find _carryMag;
if (_index < 0) then {
_index = _containerMagazineClassnames pushBack _carryMag;