Fix removeVirtualItems not removing Accs, nil virtualItems var in removeBox

This commit is contained in:
Josuan Albin
2017-11-04 13:19:29 +01:00
parent 2b93ceab91
commit 76d54f5b3b
2 changed files with 2 additions and 1 deletions

View File

@ -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);
};

View File

@ -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];