mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
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:
@ -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]]];
|
||||
|
@ -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;
|
||||
|
Reference in New Issue
Block a user