mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
General - Change count
to forEach
where appropriate (#9890)
count -> forEach Co-authored-by: Grim <69561145+LinkIsGrim@users.noreply.github.com>
This commit is contained in:
@ -56,8 +56,7 @@ if (inputAction "nextWeapon" > 0) then {
|
||||
if (_x == "this") then {
|
||||
_modes pushBack _weapon;
|
||||
};
|
||||
nil
|
||||
} count getArray (configFile >> "CfgWeapons" >> _weapon >> "modes");
|
||||
} forEach getArray (configFile >> "CfgWeapons" >> _weapon >> "modes");
|
||||
|
||||
// select last mode
|
||||
private _mode = _modes select (count _modes - 1);
|
||||
|
Reference in New Issue
Block a user