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

@@ -17,7 +17,7 @@ _newObjects = [];
};
_newObjects set [count _newObjects,_type];
};
} forEach _currentObjects;
} count _currentObjects;
//Compare current loadout with old loadout
_newObjects = [];
@@ -31,6 +31,6 @@ _newObjects = [];
};
_newObjects set [count _newObjects,_type];
};
} forEach _checkObjects;
} count _checkObjects;
_change;