From 92d01fde3f75293117b473b262bc649ed0c97274 Mon Sep 17 00:00:00 2001 From: LinkIsGrim <69561145+LinkIsGrim@users.noreply.github.com> Date: Sun, 7 Apr 2024 14:49:38 -0300 Subject: [PATCH] fix the thing --- addons/arsenal/functions/fnc_fillRightPanel.sqf | 1 + 1 file changed, 1 insertion(+) diff --git a/addons/arsenal/functions/fnc_fillRightPanel.sqf b/addons/arsenal/functions/fnc_fillRightPanel.sqf index d8dc7e2403..5e2fe2fccd 100644 --- a/addons/arsenal/functions/fnc_fillRightPanel.sqf +++ b/addons/arsenal/functions/fnc_fillRightPanel.sqf @@ -208,6 +208,7 @@ switch (_ctrlIDC) do { if (_leftPanelState) then { { + if (_x != _selectedItem && {!isNil {GVAR(virtualItemsFlatAll) get _x}}) then {continue}; // don't add unique attachments attached to weapons if (_x in ((GVAR(virtualItems) get IDX_VIRT_ATTACHMENTS) get _index)) then { ["CfgWeapons", _x, _ctrlPanel] call FUNC(addListBoxItem); };