mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2025-12-13 19:52:38 +03:00
Fix MeleeMagazines showing in crafting UI
Vanilla development commit:
f2e1623ba1
This commit is contained in:
@@ -109,12 +109,14 @@ _getGear = {
|
||||
} forEach (_weapons);
|
||||
|
||||
{
|
||||
_index = [_return, _x] call _inArray;
|
||||
if !(_x in MeleeMagazines) then {
|
||||
_index = [_return, _x] call _inArray;
|
||||
|
||||
if (_index != -1) then {
|
||||
_return set [_index, [_x, ((_return select _index) select 1) + 1, 0]];
|
||||
} else {
|
||||
_return set [count _return, [_x, 1, 0]];
|
||||
if (_index != -1) then {
|
||||
_return set [_index, [_x, ((_return select _index) select 1) + 1, 0]];
|
||||
} else {
|
||||
_return set [count _return, [_x, 1, 0]];
|
||||
};
|
||||
};
|
||||
} forEach (_magazines);
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user