From 93ab0e8bc5626ddcd6151466e8a72f47257d3887 Mon Sep 17 00:00:00 2001 From: James Kingsley Date: Sat, 6 Aug 2016 00:37:09 +0100 Subject: [PATCH] Only list alive units --- ARCMF.VR/f/spect/fn_UpdateValues.sqf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ARCMF.VR/f/spect/fn_UpdateValues.sqf b/ARCMF.VR/f/spect/fn_UpdateValues.sqf index c5ee894..7153329 100644 --- a/ARCMF.VR/f/spect/fn_UpdateValues.sqf +++ b/ARCMF.VR/f/spect/fn_UpdateValues.sqf @@ -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];