Detection fix issue #1173

fix for #1173
This commit is contained in:
Frank
2019-06-26 09:05:31 +02:00
parent aef5f0c11a
commit aa4e5d0e7b
2 changed files with 3 additions and 3 deletions
+1 -2
View File
@@ -1571,9 +1571,8 @@ do -- SET_GROUP
return Count
end
--- Iterate the SET_GROUP and count how many GROUPS are alive.
--- Iterate the SET_GROUP and count how many GROUPs and UNITs are alive.
-- @param #SET_GROUP self
-- @param Core.Zone#ZONE ZoneObject The Zone to be tested for.
-- @return #number The number of GROUPs completely in the Zone
-- @return #number The number of UNITS alive.
function SET_GROUP:CountAlive()
@@ -541,7 +541,8 @@ do -- DETECTION_BASE
end
self.DetectionCount = self.DetectionSet:Count()
-- Count alive(!) groups only. Solves issue #1173 https://github.com/FlightControl-Master/MOOSE/issues/1173
self.DetectionCount = self.DetectionSet:CountAlive()
self.DetectionSet:ForEachGroupAlive(
function( DetectionGroup )