slight performance increase using forEach loops

Co-authored-by: johnb432 <58661205+johnb432@users.noreply.github.com>
This commit is contained in:
lambdatiger 2024-01-15 17:54:22 -06:00 committed by GitHub
parent 3874146b23
commit 6e209ba4f0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -14,9 +14,10 @@
*
* Public: No
*/
for "_i" from 0 to count GVAR(dev_eventSpheres) - 1 do {
deleteVehicle (GVAR(dev_eventSpheres)#_i);
};
{
deleteVehicle _x;
} forEach GVAR(dev_eventSpheres);
GVAR(dev_eventSpheres) = [];
GVAR(dev_trackLines) = createHashMap;