diff --git a/Song tool.lua b/Song tool.lua index 3e4d088..1c1ab3a 100644 --- a/Song tool.lua +++ b/Song tool.lua @@ -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( {