use references when passing NoteData
  Have player own a NoteDataWithScoring, not derive from it
This commit is contained in:
Chris Danford
2004-10-23 17:43:49 +00:00
parent e483125b9f
commit 09193d9e4b
22 changed files with 235 additions and 180 deletions
+4 -1
View File
@@ -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;