Skip to content

Commit

Permalink
Don't try to add spacer after final source track if last in tracklist
Browse files Browse the repository at this point in the history
  • Loading branch information
chmaha committed Mar 13, 2024
1 parent 1cbd697 commit a9817e4
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -355,7 +355,9 @@ end

function add_spacer(num)
local track = GetTrack(0, num)
SetMediaTrackInfo_Value(track, "I_SPACER", 1)
if track then
SetMediaTrackInfo_Value(track, "I_SPACER", 1)
end
end

---------------------------------------------------------------------
Expand Down
4 changes: 3 additions & 1 deletion ReaClassical/ReaClassical_Duplicate folder (No items).lua
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,9 @@ end

function add_spacer(num)
local track = GetTrack(0, num)
SetMediaTrackInfo_Value(track, "I_SPACER", 1)
if track then
SetMediaTrackInfo_Value(track, "I_SPACER", 1)
end
end

---------------------------------------------------------------------
Expand Down

0 comments on commit a9817e4

Please sign in to comment.