From 5bc9044d895ef9abb1dfbf9fc36a467dac26a824 Mon Sep 17 00:00:00 2001 From: Flamefire Date: Sun, 28 Apr 2013 13:17:58 +0200 Subject: [PATCH] Bugfix for index check in Points calculation --- Vocaluxe/Base/CGame.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Vocaluxe/Base/CGame.cs b/Vocaluxe/Base/CGame.cs index 672ac815..58bc9c2d 100644 --- a/Vocaluxe/Base/CGame.cs +++ b/Vocaluxe/Base/CGame.cs @@ -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)