diff --git a/src/TimingData.cpp b/src/TimingData.cpp index 02653f81b8..f9a0ed9bee 100644 --- a/src/TimingData.cpp +++ b/src/TimingData.cpp @@ -218,6 +218,10 @@ bool TimingData::IsWarpAtRow( int iNoteRow ) const return false; int i = GetSegmentIndexAtRow( SEGMENT_WARP, iNoteRow ); + if (i == -1) + { + return false; + } const WarpSegment *s = ToWarp(warps[i]); float beatRow = NoteRowToBeat(iNoteRow); if( s->GetBeat() <= beatRow && beatRow < (s->GetBeat() + s->GetLength() ) )