groupIsDead fix

FIXED: mist.groupIsDead to account for instances where isExist() still returns true.
This commit is contained in:
mrSkortch 2024-04-03 16:53:09 -06:00
parent 8985ba9a7e
commit c6b7b957d1
2 changed files with 3 additions and 3 deletions

View File

@ -35,7 +35,7 @@ mist = {}
-- don't change these -- don't change these
mist.majorVersion = 4 mist.majorVersion = 4
mist.minorVersion = 5 mist.minorVersion = 5
mist.build = 125 mist.build = 126
-- forward declaration of log shorthand -- forward declaration of log shorthand
local log local log
@ -9227,7 +9227,7 @@ do -- group tasks scope
function mist.groupIsDead(groupName) -- copy more or less from on station function mist.groupIsDead(groupName) -- copy more or less from on station
local gp = Group.getByName(groupName) local gp = Group.getByName(groupName)
if gp then if gp then
if #gp:getUnits() > 0 or gp:isExist() == true then if #gp:getUnits() > 0 and gp:isExist() == true then
return false return false
end end
end end

View File

@ -9227,7 +9227,7 @@ do -- group tasks scope
function mist.groupIsDead(groupName) -- copy more or less from on station function mist.groupIsDead(groupName) -- copy more or less from on station
local gp = Group.getByName(groupName) local gp = Group.getByName(groupName)
if gp then if gp then
if #gp:getUnits() > 0 or gp:isExist() == true then if #gp:getUnits() > 0 and gp:isExist() == true then
return false return false
end end
end end