optimization

This commit is contained in:
Glenn Maynard
2005-01-03 20:54:28 +00:00
parent e6bd8c0755
commit 8340759571
+5 -1
View File
@@ -171,7 +171,11 @@ void NoteDataUtil::LoadFromSMNoteDataString( NoteData &out, CString sSMNoteData
}
}
out.SetTapNote( iTrack, iIndex, tn );
/* Optimization: if we pass TAP_EMPTY, NoteData will do a search
* to remove anything in this position. We know that there's nothing
* there, so avoid the search. */
if( tn.type != TapNote::empty )
out.SetTapNote( iTrack, iIndex, tn );
iTrack++;
}