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