mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2025-12-15 13:26:39 +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:
@@ -6,7 +6,7 @@ if (!(isNull _backpack)) then {
|
||||
_magazines = getMagazineCargo _backpack;
|
||||
_weaponscnt = count(_weapons select 0);
|
||||
_magazinescnt = count(_magazines select 0);
|
||||
if ((_magazinescnt > 0) or(_weaponscnt > 0)) then{
|
||||
if ((_magazinescnt > 0) ||(_weaponscnt > 0)) then{
|
||||
hideObject _backpack;
|
||||
};
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user