Address warp issue if never passed a warp yet.

Thanks to phantom again for catching this.
This commit is contained in:
Jason Felds
2013-02-05 17:02:39 -05:00
parent 1973091a7f
commit 0e494a3b44
+4
View File
@@ -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() ) )