Bugfix for index check in Points calculation

This commit is contained in:
Flamefire committed 2013-04-28 13:17:58 +02:00
1 parent 5cea9e6775
commit 5bc9044d89
1 file changed
+1 -1
+1 -1
View File
@@ -247,7 +247,7 @@ namespace Vocaluxe.Base
CNote[] notes = lines[line].Notes;
int note = lines[line].FindPreviousNote(beat);
if (notes[note].EndBeat < beat)
if (note >= 0 && notes[note].EndBeat < beat)
note = -1;
if (note >= 0)