Fix splitting composite NoteData.
This commit is contained in:
@@ -415,8 +415,11 @@ void NoteDataUtil::SplitCompositeNoteData( const NoteData &in, vector<NoteData>
|
|||||||
unsigned index = int( tn.pn );
|
unsigned index = int( tn.pn );
|
||||||
|
|
||||||
DEBUG_ASSERT( index < NUM_PlayerNumber );
|
DEBUG_ASSERT( index < NUM_PlayerNumber );
|
||||||
if( out.size() <= index )
|
while( out.size() <= index )
|
||||||
out.resize( index + 1 );
|
{
|
||||||
|
out.push_back( NoteData() );
|
||||||
|
out.back().SetNumTracks( in.GetNumTracks() );
|
||||||
|
}
|
||||||
tn.pn = PLAYER_INVALID;
|
tn.pn = PLAYER_INVALID;
|
||||||
out[index].SetTapNote( t, row, tn );
|
out[index].SetTapNote( t, row, tn );
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user