fix assertion failure

This commit is contained in:
Glenn Maynard
2004-11-01 06:46:46 +00:00
parent 8c1c2d0095
commit f0ec9ebbd6
+3
View File
@@ -77,6 +77,9 @@ bool RageSoundReader_Chain::AddSound( CString sPath, float fOffsetSecs, float fP
/* If every sound has the same sample rate, return it. Otherwise, return -1. */
int RageSoundReader_Chain::GetSampleRateInternal() const
{
if( m_apLoadedSounds.empty() )
return m_iPreferredSampleRate;
map<CString, SoundReader *>::const_iterator it;
int iRate = -1;
for( it = m_apLoadedSounds.begin(); it != m_apLoadedSounds.end(); ++it )