Use pushBack instead of array compiling

This commit is contained in:
jonpas 2015-09-05 19:57:35 +02:00
parent 644460ed96
commit f22072a94d

View File

@ -39,20 +39,15 @@ _list = _whitespaceList;
// Check for object existence
_nilCheckedList = "";
_nilCheckedList = [];
if (_checkNil) then {
{
if !(isNil _x) then {
if (_nilCheckedList == "") then {
_nilCheckedList = _x;
} else {
_nilCheckedList = _nilCheckedList + "," + _x;
};
_nilCheckedList pushBack _x;
};
} count _list;
// Add Array characters and parse into array
_list = [] call compile format ["[%1]", _nilCheckedList];
_list = _nilCheckedList;
};
TRACE_4("Lists",_splittedList,_whitespaceList,_nilCheckedList,_list);