mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2025-12-17 09:10:27 +03:00
Replace forEach with Count
Use count where you do not need _forEachIndex variable, it's quicker than forEach.
This commit is contained in:
@@ -16,7 +16,7 @@ while {true} do {
|
||||
_delMe = true;
|
||||
};
|
||||
_cursor = _cursor + 1;
|
||||
} forEach dayz_buildingMonitor;
|
||||
} count dayz_buildingMonitor;
|
||||
if (_delMe) then {
|
||||
dayz_buildingMonitor = dayz_buildingMonitor - ["DEL"];
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user