Arsenal - Fix cargo backpacks not being shown in right panel (#9701)

* fix backpacks in right panel

* Update addons/arsenal/functions/fnc_fillRightPanel.sqf
This commit is contained in:
Grim
2023-12-31 10:10:23 -03:00
committed by GitHub
parent 106c09495f
commit 449265c830
2 changed files with 6 additions and 2 deletions

View File

@ -44,7 +44,11 @@ private _cfgMagazines = configFile >> "CfgMagazines";
private _cfgWeapons = configFile >> "CfgWeapons";
private _rightPanelCache = uiNamespace getVariable QGVAR(rightPanelCache);
private _currentCargo = itemsWithMagazines GVAR(center);
private _currentCargo = []; // we only need this if we're filtering for favorites
if (GVAR(favoritesOnly)) then {
_currentCargo = itemsWithMagazines GVAR(center) + backpacks GVAR(center);
_currentCargo = _currentCargo arrayIntersect _currentCargo;
};
private _fnc_fillRightContainer = {
params ["_configCategory", "_className", ["_isUnique", false, [false]], ["_unknownOrigin", false, [false]]];

View File

@ -126,7 +126,7 @@ private _fnc_uniqueEquipment = {
} forEach (getUnitLoadout GVAR(center)); // Only need items, not extended loadout
// Get all items from unit
_items = itemsWithMagazines GVAR(center);
_items = itemsWithMagazines GVAR(center) + backpacks GVAR(center);
private _isMagazine = false;
private _isWeapon = false;
private _isGrenade = false;