Skip to content

Commit

Permalink
Merge pull request #299 from CBATeam/fixcompatibleitems
Browse files Browse the repository at this point in the history
copy returned array of compatibleItems
  • Loading branch information
Killswitch00 committed Mar 19, 2016
2 parents d1042f4 + ef2189b commit 9f17700
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion addons/jr/fnc_compatibleItems.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ if (isNil "_compatibleItems") then {
};

if (_typefilter == 0) then { //return
_compatibleItems
+ _compatibleItems
} else {
_compatibleItems select {_typefilter == getNumber(configFile>>"CfgWeapons">>_x>>"itemInfo">>"type")};
};

0 comments on commit 9f17700

Please sign in to comment.