mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2026-04-17 09:53:21 +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:
@@ -29,7 +29,7 @@ if (!_canFill) then {
|
||||
//Check for Well
|
||||
_isWell = ["_well",str(_x),false] call fnc_inString;
|
||||
if (_isWell) then {_canFill = true};
|
||||
} forEach _objectsWell;
|
||||
} count _objectsWell;
|
||||
};
|
||||
|
||||
if (!_canFill) then {
|
||||
@@ -43,7 +43,7 @@ if (!_canFill) then {
|
||||
_canFill = true;
|
||||
};
|
||||
};
|
||||
} forEach _objectsPond;
|
||||
} count _objectsPond;
|
||||
};
|
||||
|
||||
if (_canFill) then {
|
||||
|
||||
Reference in New Issue
Block a user