Warehouse

This commit is contained in:
Frank
2020-04-03 01:39:17 +02:00
parent 8b9e49cfc6
commit d06d23cba2
3 changed files with 58 additions and 31 deletions
+2 -1
View File
@@ -1780,7 +1780,8 @@ function AUFTRAG:CountMissionTargets()
local target=self.engageTarget.Target --Wrapper.Group#GROUP
local units=target:GetUnits()
for _,_unit in pairs(units) do
for _,_unit in pairs(units or {}) do
local unit=_unit --Wrapper.Unit#UNIT
-- We check that unit is "alive" and has health >1. Somtimes units get heavily damanged but are still alive.