diff --git a/addons/jr/fnc_compatibleItems.sqf b/addons/jr/fnc_compatibleItems.sqf index afe9556b0..fb2db72d4 100644 --- a/addons/jr/fnc_compatibleItems.sqf +++ b/addons/jr/fnc_compatibleItems.sqf @@ -52,7 +52,7 @@ if (isNil QGVAR(namespace)) then { }; // Get cached result, if it exists -private _cachekey = format ["%1#%2", _weapon, ["all", _typefilter] select _typeFilterExists]; +private _cachekey = format ["%1#%2", _weapon, if (_typeFilterExists) then {_typefilter} else {"all"} ]; private _compatibleItems = GVAR(namespace) get _cachekey; if (!isNil "_compatibleItems") exitWith {