From b262fa91d6e40843b89a037ef69e0f2fd899a8ae Mon Sep 17 00:00:00 2001 From: Birger Skogeng Pedersen Date: Thu, 24 Mar 2022 21:54:39 +0100 Subject: [PATCH] fix bug in task group updateGroupLead --- gws/taskgroup.lua | 2 +- version.txt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/gws/taskgroup.lua b/gws/taskgroup.lua index ce2e07c..96bab3d 100644 --- a/gws/taskgroup.lua +++ b/gws/taskgroup.lua @@ -40,7 +40,7 @@ end -- @param #TaskGroup self function gws_TaskGroup:updateGroupLead() self.groupLead = nil - if self.dcsGroup then + if self.dcsGroup and self.dcsGroup:isExist() then local unitIndex = 1 local units = self.dcsGroup:getUnits() while unitIndex <= #units and not self.groupLead do diff --git a/version.txt b/version.txt index c7ed3a2..3e43b53 100644 --- a/version.txt +++ b/version.txt @@ -1 +1 @@ -1_19 +1_20