diff --git a/addons/arsenal/functions/fnc_removeBox.sqf b/addons/arsenal/functions/fnc_removeBox.sqf index ab6d9b9add..63a93060f7 100644 --- a/addons/arsenal/functions/fnc_removeBox.sqf +++ b/addons/arsenal/functions/fnc_removeBox.sqf @@ -15,5 +15,6 @@ if (_global && {isMultiplayer}) then { [QGVAR(removeBox), [_object, false]] call CBA_fnc_globalEvent; }; } else { + _object setVariable [QGVAR(virtualItems), nil, false]; [_object, 0, ["ACE_MainActions", QGVAR(interaction)]] call EFUNC(interact_menu,removeActionFromObject); }; \ No newline at end of file diff --git a/addons/arsenal/functions/fnc_removeVirtualItems.sqf b/addons/arsenal/functions/fnc_removeVirtualItems.sqf index fb88add179..24c53faa38 100644 --- a/addons/arsenal/functions/fnc_removeVirtualItems.sqf +++ b/addons/arsenal/functions/fnc_removeVirtualItems.sqf @@ -39,7 +39,7 @@ if (_items isEqualType true && {_items}) then { if (_forEachIndex isEqualTo 0) then { _cargo set [_forEachIndex, [(_x select 0) - _items, (_x select 1) - _items, (_x select 2) - _items]]; } else { - if (_forEachIndex isEqualTo 0) then { + if (_forEachIndex isEqualTo 1) then { _cargo set [_forEachIndex, [(_x select 0) - _items, (_x select 1) - _items, (_x select 2) - _items, (_x select 3) - _items]]; } else { _cargo set [_cargo find _x, _x - _items];