mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
Common - Fix ace_common_fnc_uniqueItems
(#10107)
Fix `ace_common_fnc_uniqueItems`
This commit is contained in:
parent
b714c8bce2
commit
7b0e5b6416
@ -28,10 +28,12 @@ private _fnc_getItems = {
|
||||
_inventoryItems append ((getItemCargo vestContainer _target) select 0);
|
||||
_inventoryItems append ((getItemCargo backpackContainer _target) select 0);
|
||||
|
||||
_items set [0, _inventoryItems];
|
||||
_items set [1, magazines _target];
|
||||
private _magazines = magazines _target;
|
||||
|
||||
_items arrayIntersect _items
|
||||
_items set [0, _inventoryItems arrayIntersect _inventoryItems];
|
||||
_items set [1, _magazines arrayIntersect _magazines];
|
||||
|
||||
_items
|
||||
};
|
||||
|
||||
// Cache items list if unit is ACE_player
|
||||
|
Loading…
Reference in New Issue
Block a user