Added isNull check wrapper to nametag color propagation.

This commit is contained in:
jaynus 2015-05-19 09:19:03 -07:00
parent d8b4b53b80
commit 6eec702263

View File

@ -26,7 +26,7 @@ GVAR(ShowNamesTime) = -10;
// This allows for assigned team colors to match across the entire group
[{
private["_leader", "_playerIsLeader", "_unitTeam"];
if (alive ACE_player) then {
if (!(isNull ACE_player) && { alive ACE_player } ) then {
_leader = leader (group ACE_player);
_playerIsLeader = false;