fix GetNumTapNotes

This commit is contained in:
Glenn Maynard
2002-12-19 04:46:55 +00:00
parent 1fea73d721
commit 22ac4ef9df
+1 -3
View File
@@ -237,12 +237,10 @@ int NoteData::GetNumTapNotes( const float fStartBeat, const float fEndBeat ) con
int iNumNotes = 0;
int iStartIndex = BeatToNoteRow( fStartBeat );
int iEndIndex = BeatToNoteRow( fEndBeat );
if(fEndBeat == MAX_BEATS)
iEndIndex = min(iEndIndex, int(m_TapNotes[0].size()));
for( int t=0; t<m_iNumTracks; t++ )
{
for( int i=iStartIndex; i<iEndIndex; i++ )
for( int i=iStartIndex; i<=iEndIndex; i++ )
{
if( GetTapNote(t, i) != TAP_EMPTY )
iNumNotes++;