Skip to content

Commit

Permalink
Update fnc_compatibleItems.sqf
Browse files Browse the repository at this point in the history
  • Loading branch information
johnb432 committed Sep 28, 2023
1 parent 71895cb commit 60ed9ef
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions addons/jr/fnc_compatibleItems.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -37,13 +37,13 @@ if !(isClass _weaponConfig) exitWith {
[]
};

private _typeFilterExists = !isNil "_typefilter";

// Convert filter into number (if string)
if (_typefilter isEqualType "") then {
if (_typeFilterExists && {_typefilter isEqualType ""}) then {
_typefilter = [-1, 101, 201, 301, 302] param [["", "muzzle", "optic", "pointer", "bipod"] find _typefilter, -1];
};

private _typeFilterExists = !isNil "_typefilter";

// Check if valid type filter
if (_typeFilterExists && {!(_typefilter in [101, 201, 301, 302])}) exitWith {[]};

Expand Down

0 comments on commit 60ed9ef

Please sign in to comment.