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:
johnb432
2024-04-04 13:15:26 +02:00
committed by GitHub
parent ccb3e65734
commit 8f46ffd8d5
73 changed files with 108 additions and 188 deletions

View File

@ -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);