Github issues

#1360
#1361
This commit is contained in:
Frank 2020-10-31 21:21:25 +01:00
parent b34b537a26
commit 5e8a36802c
2 changed files with 2 additions and 2 deletions

View File

@ -341,7 +341,7 @@ do
-- @return #SPOT
function SPOT:onafterLaseOff( From, Event, To )
self:F( {"Stopped lasing for ", self.Target:GetName() , SpotIR = self.SportIR, SpotLaser = self.SpotLaser } )
self:F( {"Stopped lasing for ", self.Target and self.Target:GetName() or "coord", SpotIR = self.SportIR, SpotLaser = self.SpotLaser } )
self.Lasing = false

View File

@ -7899,7 +7899,7 @@ end
function AIRBOSS:_RemoveUnitFromFlight(unit)
-- Check if unit exists.
if unit then
if unit and unit:IsInstanceOf("UNIT") then
-- Get group.
local group=unit:GetGroup()