Bugfix GroupSet

This commit is contained in:
FlightControl 2016-05-27 14:20:03 +02:00
parent 41375f4491
commit 69c11ca1c6

View File

@ -57,7 +57,6 @@ Include.File( "Set" )
-- @extends Set#SET -- @extends Set#SET
GROUPSET = { GROUPSET = {
ClassName = "GROUPSET", ClassName = "GROUPSET",
Units = {},
Filter = { Filter = {
Coalitions = nil, Coalitions = nil,
Categories = nil, Categories = nil,
@ -100,7 +99,7 @@ end
-- @param #GROUPSET self -- @param #GROUPSET self
-- @param #string GroupName -- @param #string GroupName
-- @return Group#GROUP The found Group. -- @return Group#GROUP The found Group.
function GROUPSET:FindUnit( GroupName ) function GROUPSET:FindGroup( GroupName )
local GroupFound = self.Set[GroupName] local GroupFound = self.Set[GroupName]
return GroupFound return GroupFound
@ -228,7 +227,7 @@ end
-- @param #GROUPSET self -- @param #GROUPSET self
-- @param #function IteratorFunction The function that will be called when there is an alive GROUP in the GROUPSET. The function needs to accept a GROUP parameter. -- @param #function IteratorFunction The function that will be called when there is an alive GROUP in the GROUPSET. The function needs to accept a GROUP parameter.
-- @return #GROUPSET self -- @return #GROUPSET self
function GROUPSET:ForEachUnit( IteratorFunction, ... ) function GROUPSET:ForEachGroup( IteratorFunction, ... )
self:F2( arg ) self:F2( arg )
self:ForEach( IteratorFunction, arg, self.Set ) self:ForEach( IteratorFunction, arg, self.Set )