mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2025-12-14 04:02:37 +03:00
Fix MeleeMagazines showing in crafting UI
Vanilla development commit:
f2e1623ba1
This commit is contained in:
@@ -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);
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user