cleanup:
use references when passing NoteData Have player own a NoteDataWithScoring, not derive from it
This commit is contained in:
@@ -120,7 +120,10 @@ RageSound &RageSound::operator=( const RageSound &cpy )
|
||||
|
||||
databuf.reserve(internal_buffer_size);
|
||||
delete Sample;
|
||||
Sample = cpy.Sample->Copy();
|
||||
if( cpy.Sample )
|
||||
Sample = cpy.Sample->Copy();
|
||||
else
|
||||
Sample = NULL;
|
||||
|
||||
m_sFilePath = cpy.m_sFilePath;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user