diff --git a/Scripts/DCS-SRS/Scripts/DCS-SimpleRadioStandalone.lua b/Scripts/DCS-SRS/Scripts/DCS-SimpleRadioStandalone.lua index 057ef5a66..a5efd38bd 100644 --- a/Scripts/DCS-SRS/Scripts/DCS-SimpleRadioStandalone.lua +++ b/Scripts/DCS-SRS/Scripts/DCS-SimpleRadioStandalone.lua @@ -87,6 +87,15 @@ function SR.exporter() local _update local _data = LoGetSelfData() + if _data ~= nil then + -- check for death / eject -- call below returns a number when so + local _device = GetDevice(0) + + if type(_device) == 'number' then + _data = nil -- wipe out data - aircraft is gone really + end + end + if _data ~= nil then _update = {