From 28708187c91313a7ea02d4a8e6e487ef5c15ce84 Mon Sep 17 00:00:00 2001 From: Jason Felds Date: Tue, 5 Feb 2013 17:03:36 -0500 Subject: [PATCH] Fakes too. --- src/TimingData.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/TimingData.cpp b/src/TimingData.cpp index f9a0ed9bee..85d47e6ef0 100644 --- a/src/TimingData.cpp +++ b/src/TimingData.cpp @@ -247,6 +247,10 @@ bool TimingData::IsFakeAtRow( int iNoteRow ) const return false; int i = GetSegmentIndexAtRow( SEGMENT_FAKE, iNoteRow ); + if (i == -1) + { + return false; + } const FakeSegment *s = ToFake(fakes[i]); float beatRow = NoteRowToBeat(iNoteRow); if( s->GetBeat() <= beatRow && beatRow < ( s->GetBeat() + s->GetLength() ) )