This commit is contained in:
Frank
2019-06-03 22:58:53 +02:00
parent 9fed91b16f
commit acd5b1bdca
2 changed files with 8 additions and 4 deletions

View File

@@ -1491,7 +1491,7 @@ function RECOVERYTANKER:_ActivateTACAN(delay)
local unit=self.tanker:GetUnit(1)
-- Check if unit is alive.
if unit:IsAlive() then
if unit and unit:IsAlive() then
-- Debug message.
local text=string.format("Activating recovery tanker TACAN beacon: channel=%d mode=%s, morse=%s.", self.TACANchannel, self.TACANmode, self.TACANmorse)