From f3f1b0ac95af6e3ee8035efcf3c365737c7f20eb Mon Sep 17 00:00:00 2001 From: commy2 Date: Sat, 9 Feb 2019 14:17:03 +0100 Subject: [PATCH] Update addons/inventory/XEH_postInit.sqf Co-Authored-By: dedmen --- addons/inventory/XEH_postInit.sqf | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/addons/inventory/XEH_postInit.sqf b/addons/inventory/XEH_postInit.sqf index e30654300c3..2f341d78333 100644 --- a/addons/inventory/XEH_postInit.sqf +++ b/addons/inventory/XEH_postInit.sqf @@ -11,7 +11,11 @@ if (!hasInterface) exitWith {}; private _allItems = uiNamespace getVariable [QGVAR(ItemKeyCache), []]; //See XEH_preStart.sqf //isEqualType is hacking protection as we cannot trust that the cache hasn't been manipulated -{GVAR(ItemKeyNamespace) setVariable _x;} forEach (_allItems select {_x isEqualType []}); +{ + if (_x isEqualType []) then { + GVAR(ItemKeyNamespace) setVariable _x; + }; +} forEach _allItems; GVAR(customFilters) = []; GVAR(selectedFilterIndex) = -1;