Skip to content

Commit 85ef524

Browse files
committed
Fix "attempt to index global 'event' (a nil value)" error.
1 parent 4fe1bfb commit 85ef524

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

midi-parser.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -271,7 +271,7 @@ _G.midiParser = function( fileName, path )
271271
table.insert( track.messages, {
272272
time = deltaTime,
273273
type = 'meta',
274-
meta = 'Unknown Text: ' .. event[ 2 ],
274+
meta = 'Unknown Text',
275275
text = text
276276
} )
277277

0 commit comments

Comments
 (0)