fixed arg handels
Signed-off-by: Ebbe Baß <ebbe.bass>
This commit is contained in:
+6
-3
@@ -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(
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user