This commit is contained in:
Glenn Maynard
2006-10-20 09:35:38 +00:00
parent fec2d3628b
commit 43a9f7b451
2 changed files with 5 additions and 5 deletions
+1 -1
View File
@@ -325,7 +325,7 @@ void RageSoundManager::AddLoadedSound( const RString &sPath_, RageSoundReader_Pr
it = m_mapPreloadedSounds.find( sPath ); it = m_mapPreloadedSounds.find( sPath );
ASSERT_M( it == m_mapPreloadedSounds.end(), sPath ); ASSERT_M( it == m_mapPreloadedSounds.end(), sPath );
m_mapPreloadedSounds[sPath] = (RageSoundReader_Preload *) pSound->Copy(); m_mapPreloadedSounds[sPath] = pSound->Copy();
} }
+4 -4
View File
@@ -1047,12 +1047,12 @@ int RageSoundReader_MP3::GetLengthInternal( bool fast )
int RageSoundReader_MP3::GetLengthConst( bool fast ) const int RageSoundReader_MP3::GetLengthConst( bool fast ) const
{ {
RageSoundReader_MP3 *cpy = (RageSoundReader_MP3 *) Copy(); RageSoundReader_MP3 *pCopy = this->Copy();
int length = cpy->GetLengthInternal( fast ); int iLength = pCopy->GetLengthInternal( fast );
delete cpy; delete pCopy;
return length; return iLength;
} }