mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2026-02-04 15:22:53 +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:
@@ -30,7 +30,7 @@ if (count _inventory > 0) then {
|
||||
};
|
||||
};
|
||||
_idc = _idc + 1;
|
||||
} forEach _mags;
|
||||
} count _mags;
|
||||
|
||||
//Add weapons
|
||||
{
|
||||
@@ -43,5 +43,5 @@ if (count _inventory > 0) then {
|
||||
if (_isOK) then {
|
||||
player addWeapon _x;
|
||||
};
|
||||
} forEach _wpns;
|
||||
} count _wpns;
|
||||
};
|
||||
Reference in New Issue
Block a user