Skip to content

Commit

Permalink
Faster loop
Browse files Browse the repository at this point in the history
  • Loading branch information
dedmen committed Feb 9, 2019
1 parent 71f161f commit 15ab4cd
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions addons/inventory/XEH_postInit.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,7 @@ GVAR(Grenades_ItemList) = [];

{
GVAR(Grenades_ItemList) append getArray (configFile >> "CfgWeapons" >> "Throw" >> _x >> "magazines");
false
} count getArray (configFile >> "CfgWeapons" >> "Throw" >> "muzzles");
} forEach getArray (configFile >> "CfgWeapons" >> "Throw" >> "muzzles");

// make list case insensitive
GVAR(Grenades_ItemList) = GVAR(Grenades_ItemList) apply {toLower _x};
Expand Down

0 comments on commit 15ab4cd

Please sign in to comment.