From 42221f406a7ff6b748f328c8b5b8fe6aafa1bbc8 Mon Sep 17 00:00:00 2001 From: Frank Date: Sun, 26 Oct 2025 15:19:34 +0100 Subject: [PATCH] Update Radios.lua --- Moose Development/Moose/Navigation/Radios.lua | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Moose Development/Moose/Navigation/Radios.lua b/Moose Development/Moose/Navigation/Radios.lua index 5b1d5e013..7e13e57e3 100644 --- a/Moose Development/Moose/Navigation/Radios.lua +++ b/Moose Development/Moose/Navigation/Radios.lua @@ -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