Fix plot manage array add errors from 1e65f7a

@icomrade - when you use set to add an element to an array you do not
need to wrap it in brackets [ ] like you do with +.

This was making it a nested array which was not intended in the
original.
This commit is contained in:
ebaydayz
2016-05-17 19:30:21 -04:00
parent dbe7bf0a17
commit edb64c4e05
2 changed files with 2 additions and 2 deletions

View File

@@ -9,7 +9,7 @@ _toRemove = (_friends select _pos);
_newList = [];
{
if(_x select 0 != _toRemove select 0)then{
_newList set [(count _newList), [_x]];
_newList set [(count _newList), _x];
};
} count _friends;
_thePlot setVariable ["plotfriends", _newList, true];