Common - Fix ace_common_fnc_uniqueItems (#10107)

Fix `ace_common_fnc_uniqueItems`
This commit is contained in:
johnb432 2024-07-03 17:30:41 +02:00 committed by GitHub
parent b714c8bce2
commit 7b0e5b6416
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

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