Fix splitting composite NoteData.

This commit is contained in:
Steve Checkoway
2006-07-09 23:51:40 +00:00
parent eb764177f1
commit c090130108
+5 -2
View File
@@ -415,8 +415,11 @@ void NoteDataUtil::SplitCompositeNoteData( const NoteData &in, vector<NoteData>
unsigned index = int( tn.pn );
DEBUG_ASSERT( index < NUM_PlayerNumber );
if( out.size() <= index )
out.resize( index + 1 );
while( out.size() <= index )
{
out.push_back( NoteData() );
out.back().SetNumTracks( in.GetNumTracks() );
}
tn.pn = PLAYER_INVALID;
out[index].SetTapNote( t, row, tn );
}