mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2025-12-18 01:30:26 +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:
@@ -36,7 +36,7 @@ _serial = 0;
|
||||
if (_itemQty != _oldQty) then {_change = true};
|
||||
|
||||
_serial = _serial + 1;
|
||||
} forEach _currentTypes;
|
||||
} count _currentTypes;
|
||||
|
||||
//Review old loadout
|
||||
_serial = 0;
|
||||
@@ -52,6 +52,6 @@ _serial = 0;
|
||||
if (_itemQty != _oldQty) then {_change = true};
|
||||
|
||||
_serial = _serial + 1;
|
||||
} forEach _previousTypes;
|
||||
} count _previousTypes;
|
||||
|
||||
_change
|
||||
Reference in New Issue
Block a user