diff --git a/tape-playlist.lua b/tape-playlist.lua index 7f70929..13dfe75 100644 --- a/tape-playlist.lua +++ b/tape-playlist.lua @@ -51,7 +51,7 @@ function() local x, y = table.unpack(evd, 1) if drive.isReady() and y <= #table_of_contents then drive.seek(-drive.getSize()) - drive.seek(table_of_contents[i].offset) + drive.seek(table_of_contents[y].offset) drive.play() end elseif ev == "term_resize" then