Skip to content

Commit e39eacb

Browse files
authored
Fortify/Trenches - Fix blowing-up uniqueItems cache (#10800)
Fix #10799
1 parent 398e07e commit e39eacb

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

addons/fortify/functions/fnc_canFortify.sqf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ params ["_player", ["_cost", 0]];
2020

2121
(missionNamespace getVariable [QGVAR(fortifyAllowed), true]) &&
2222
{
23-
private _items = _player call EFUNC(common,uniqueItems);
23+
private _items = +(_player call EFUNC(common,uniqueItems));
2424
_items append weapons _player;
2525
_items pushBack backpack _player;
2626
GVAR(fortifyTools) findAny _items != -1

addons/trenches/functions/fnc_hasEntrenchingTool.sqf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ params [
1919
["_unit", objNull, [objNull]]
2020
];
2121

22-
private _uniqueItems = _unit call EFUNC(common,uniqueItems);
22+
private _uniqueItems = +(_unit call EFUNC(common,uniqueItems));
2323
_uniqueItems append weapons _unit;
2424
_uniqueItems pushBack backpack _unit;
2525

0 commit comments

Comments
 (0)