tracking down volume related assert

This commit is contained in:
Chris Danford
2005-10-07 05:29:33 +00:00
parent 052a0166df
commit e80dcafbdd
3 changed files with 4 additions and 3 deletions
+1 -1
View File
@@ -398,7 +398,7 @@ float PrefsManager::GetSoundVolume()
if ( m_fSoundVolume==-1 )
return DEFAULT_SOUND_VOLUME;
else
return m_fSoundVolume;
return clamp(m_fSoundVolume,0.0f,1.0f);
}
CString PrefsManager::GetInputDrivers() {