validate m_BackgroundMode instead of asserting on invalid values

This commit is contained in:
Chris Danford
2005-05-31 01:14:30 +00:00
parent 93d501b94b
commit 6b2b3ec6b1
2 changed files with 2 additions and 1 deletions
+1
View File
@@ -366,6 +366,7 @@ void PrefsManager::ReadGlobalPrefsFromIni( const IniFile &ini )
m_iSongsPerPlay.Set( clamp(m_iSongsPerPlay.Get(),0,MAX_SONGS_PER_PLAY) );
FOREACH_PlayerNumber( pn )
GetMemoryCardOsMountPoint(pn).Set( FixSlashes(GetMemoryCardOsMountPoint(pn)) );
m_BackgroundMode.Set( (BackgroundMode)clamp((int)m_BackgroundMode.Get(),0,(int)NUM_BackgroundMode-1) );
}
void PrefsManager::SaveGlobalPrefsToDisk() const