mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
Fix removeVirtualItems not removing Accs, nil virtualItems var in removeBox
This commit is contained in:
@ -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);
|
||||
};
|
@ -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];
|
||||
|
Reference in New Issue
Block a user