optimization

This commit is contained in:
Glenn Maynard
2005-01-03 20:54:28 +00:00
parent e6bd8c0755
commit 8340759571
+4
View File
@@ -171,6 +171,10 @@ void NoteDataUtil::LoadFromSMNoteDataString( NoteData &out, CString sSMNoteData
}
}
/* 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++;