Update Radios.lua

This commit is contained in:
Frank 2025-10-26 15:19:34 +01:00
parent 654f752ca0
commit 42221f406a

View File

@ -162,6 +162,9 @@ function RADIOS:NewFromFile(FileName)
self:E(string.format("ERROR: file with radios info does not exist! File=%s", tostring(FileName)))
return nil
end
-- Backup DCS radio table
local radiobak=UTILS.DeepCopy(radio)
-- This will create a global table `radio`
dofile(FileName)
@ -169,6 +172,9 @@ function RADIOS:NewFromFile(FileName)
-- Get radios from table.
self=self:NewFromTable(radio)
-- Restore DCS radio table
radio=UTILS.DeepCopy(radiobak)
return self
end