fixed arg handels

Signed-off-by: Ebbe Baß <ebbe.bass>
This commit is contained in:
Ebbe Baß
2024-10-27 10:53:54 +01:00
parent 29c06df5fe
commit 1d687403ea
+6 -3
View File
@@ -203,11 +203,12 @@ function StartPointerCueSelectionMenu(main_sequence_no)
for i = 1, tablelength(cues) do
if cues[i]:Children()[1].appearance then
if tostring(cues[i]:Children()[1].appearance.name) == "Start Point" then
spCues = i
spCues = spCues + 1
end
end
end
debug_print(tostring(spCues))
if spCues >= 9 then
LimitReachedMenu(main_sequence_no)
else
@@ -316,7 +317,8 @@ end
-- Main menu
function main()
function main(display_handle, args)
debug_print(tostring(args))
if args then
local cues = SelectedSequence():Children()
local spCues = {}
@@ -335,6 +337,7 @@ function main()
Cmd("Goto Cue "..tostring(spCues[i]/1000))
end
end
-- args = nil
else
local resultTable = MessageBox(
{