Fixing error with SET_BASE:GetSet(). It was the wrong approach to solve the Menu issues. Setting back to the original.

This commit is contained in:
FlightControl_Master 2017-12-10 19:02:20 +01:00
parent f18b18187b
commit e036ec0adf

View File

@ -719,20 +719,20 @@ end
--- Gets the Set.
-- @param #SET_GROUP self
-- @return #SET_GROUP self
function SET_BASE:GetSet()
self:F2()
-- Clean the Set before returning with only the alive Groups.
for GroupName, GroupObject in pairs( self.Set ) do
if GroupObject then
if not GroupObject:IsAlive() then
self:Remove( GroupName )
end
end
end
return self.Set
end
--function SET_BASE:GetSet()
-- self:F2()
--
-- -- Clean the Set before returning with only the alive Groups.
-- for GroupName, GroupObject in pairs( self.Set ) do
-- if GroupObject then
-- if not GroupObject:IsAlive() then
-- self:Remove( GroupName )
-- end
-- end
-- end
--
-- return self.Set
--end
--- Add GROUP(s) to SET_GROUP.