mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2025-12-13 19:52:38 +03:00
Fix dupe caused by dupe fix
thanks JasomTM and Salival
This commit is contained in:
@@ -163,17 +163,9 @@ if (!isNil "_newBackpackType" && {_newBackpackType != ""}) then {
|
||||
if (typeName _x != "STRING") then {
|
||||
_isWeapon = isClass (configFile >> "CfgWeapons" >> (_x select 0));
|
||||
_isMagazine = isClass (configFile >> "CfgMagazines" >> (_x select 0));
|
||||
if (_isWeapon && !_isMagazine) then {
|
||||
_backpackWpnTypes set [count _backpackWpnTypes, (_x select 0)];
|
||||
_backpackWpnQtys set [count _backpackWpnQtys, (_x select 1)];
|
||||
};
|
||||
} else {
|
||||
_isWeapon = isClass (configFile >> "CfgWeapons" >> _x);
|
||||
_isMagazine = isClass (configFile >> "CfgMagazines" >> _x);
|
||||
if (_isWeapon && !_isMagazine) then {
|
||||
_backpackWpnTypes set [count _backpackWpnTypes, _x];
|
||||
_backpackWpnQtys set [count _backpackWpnQtys, 1];
|
||||
};
|
||||
};
|
||||
if (!_isWeapon || (_isWeapon && _isMagazine)) then {
|
||||
_countr = _countr + 1;
|
||||
|
||||
Reference in New Issue
Block a user