From f29d055ca37e4b3d6234bb06583523c83edf3b10 Mon Sep 17 00:00:00 2001 From: Applevangelist Date: Thu, 11 Jan 2024 17:31:40 +0100 Subject: [PATCH] Correction --- Moose Development/Moose/Utilities/Utils.lua | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/Moose Development/Moose/Utilities/Utils.lua b/Moose Development/Moose/Utilities/Utils.lua index c366cc249..98425d7c8 100644 --- a/Moose Development/Moose/Utilities/Utils.lua +++ b/Moose Development/Moose/Utilities/Utils.lua @@ -2288,11 +2288,12 @@ function UTILS.GenerateUHFrequencies(Start,End) _start = _start + 500000 end else - local End = End*1000000 or 399000000 - local Start = Start*1000000 or 220000000 + local myend = End*1000000 or 399000000 + local mystart = Start*1000000 or 220000000 while _start < 399000000 do - if _start ~= 243000000 and _start < Start and _start > End then + if _start ~= 243000000 and (_start < mystart or _start > myend) then + print(_start) table.insert(FreeUHFFrequencies, _start) end _start = _start + 500000