don't keep failed sounds

This commit is contained in:
Glenn Maynard
2005-04-27 01:23:56 +00:00
parent 87a2186cc9
commit 89cf91fb38
+6 -1
View File
@@ -70,7 +70,12 @@ bool RandomSample::LoadSound( CString sSoundFilePath )
LOG->Trace( "RandomSample::LoadSound( %s )", sSoundFilePath.c_str() );
RageSound *pSS = new RageSound;
pSS->Load( sSoundFilePath );
if( !pSS->Load(sSoundFilePath) )
{
LOG->Trace( "Error loading \"%s\": %s", sSoundFilePath.c_str(), pSS->GetError().c_str() );
delete pSS;
return false;
}
m_pSamples.push_back( pSS );