mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
slight performance increase using forEach loops
Co-authored-by: johnb432 <58661205+johnb432@users.noreply.github.com>
This commit is contained in:
parent
3874146b23
commit
6e209ba4f0
@ -14,9 +14,10 @@
|
|||||||
*
|
*
|
||||||
* Public: No
|
* 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_eventSpheres) = [];
|
||||||
|
|
||||||
GVAR(dev_trackLines) = createHashMap;
|
GVAR(dev_trackLines) = createHashMap;
|
||||||
|
Loading…
Reference in New Issue
Block a user