Skip to content

Commit

Permalink
Only list alive units
Browse files Browse the repository at this point in the history
  • Loading branch information
James Kingsley committed Aug 5, 2016
1 parent 6ab62f5 commit 93ab0e8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ARCMF.VR/f/spect/fn_UpdateValues.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ tvClear _ctrlTree;
{
private _group = _x;
private _groupPath = _ctrlTree tvAdd [[_sidePath], toUpper (groupID _group)];
private _groupUnits = (units _group) select {!(_x getVariable ["ARC_cam_isVirtual", false])};
private _groupUnits = (units _group) select {alive _x && {!(_x getVariable ["ARC_cam_isVirtual", false])}};

_ctrlTree tvSetData [[_sidePath, _groupPath], format ["%1_%2", _side, groupID _group]];
_ctrlTree tvSetValue [[_sidePath, _groupPath], 0];
Expand Down

0 comments on commit 93ab0e8

Please sign in to comment.