mirror of
https://github.com/FlightControl-Master/MOOSE.git
synced 2025-08-15 10:47:21 +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:
@@ -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.
|
||||||
|
|||||||
Reference in New Issue
Block a user