Fix MeleeMagazines showing in crafting UI

Vanilla development commit:

f2e1623ba1
This commit is contained in:
ebaydayz
2016-04-28 21:33:54 -04:00
parent bc370475e5
commit 7f1b8db85a

View File

@@ -109,12 +109,14 @@ _getGear = {
} forEach (_weapons); } forEach (_weapons);
{ {
_index = [_return, _x] call _inArray; if !(_x in MeleeMagazines) then {
_index = [_return, _x] call _inArray;
if (_index != -1) then { if (_index != -1) then {
_return set [_index, [_x, ((_return select _index) select 1) + 1, 0]]; _return set [_index, [_x, ((_return select _index) select 1) + 1, 0]];
} else { } else {
_return set [count _return, [_x, 1, 0]]; _return set [count _return, [_x, 1, 0]];
};
}; };
} forEach (_magazines); } forEach (_magazines);
}; };