Skip to content

Commit 3f6362b

Browse files
authored
Merge pull request #1740 from johnb432/optimise-getarrayelements
Arrays - Optimise `CBA_fnc_getArrayElements`
2 parents 0771aa0 + 08e88fe commit 3f6362b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

addons/arrays/fnc_getArrayElements.sqf

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ while {_countA > 0} do {
2828
private _var = _array select 0;
2929
_array = _array - [_var];
3030
private _countB = count _array;
31-
_return = _return + [_var, _countA - _countB];
31+
_return append [_var, _countA - _countB];
3232
_countA = _countB;
3333
};
3434

0 commit comments

Comments
 (0)