Update Radios.lua

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

View File

@@ -163,12 +163,18 @@ function RADIOS:NewFromFile(FileName)
return nil return nil
end end
-- Backup DCS radio table
local radiobak=UTILS.DeepCopy(radio)
-- This will create a global table `radio` -- This will create a global table `radio`
dofile(FileName) dofile(FileName)
-- Get radios from table. -- Get radios from table.
self=self:NewFromTable(radio) self=self:NewFromTable(radio)
-- Restore DCS radio table
radio=UTILS.DeepCopy(radiobak)
return self return self
end end