Replace forEach with Count

Use count where you do not need _forEachIndex variable, it's quicker
than forEach.
This commit is contained in:
icomrade
2014-05-27 15:37:57 -04:00
parent 91d246e64e
commit e54b9983dd
210 changed files with 890 additions and 890 deletions

View File

@@ -6,7 +6,7 @@ if (!(isNull _backpack)) then {
_magazines = getMagazineCargo _backpack;
_weaponscnt = count(_weapons select 0);
_magazinescnt = count(_magazines select 0);
if ((_magazinescnt > 0) or(_weaponscnt > 0)) then{
if ((_magazinescnt > 0) ||(_weaponscnt > 0)) then{
hideObject _backpack;
};
};