mirror of
https://github.com/FlightControl-Master/MOOSE.git
synced 2025-10-29 16:58:06 +00:00
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:
parent
f18b18187b
commit
e036ec0adf
@ -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.
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user