Fix a crash caused when switching themes in-game. Technical reason: It was choking on the song group colors, which weren't reloaded on theme switch before.

This commit is contained in:
AJ Kelly
2010-03-26 00:45:29 -05:00
parent bfa8f30d4e
commit 961433cdef
+7
View File
@@ -126,6 +126,13 @@ void SongManager::Reload( bool bAllowFastLoad, LoadingWindow *ld )
PREFSMAN->m_bFastLoad.Set( OldVal );
UpdatePreferredSort();
// Reload song/course group colors to prevent a crash when switching
// themes in-game. -aj
NUM_SONG_GROUP_COLORS .Load( "SongManager", "NumSongGroupColors" );
SONG_GROUP_COLOR .Load( "SongManager", SONG_GROUP_COLOR_NAME, NUM_SONG_GROUP_COLORS );
NUM_COURSE_GROUP_COLORS .Load( "SongManager", "NumCourseGroupColors" );
COURSE_GROUP_COLOR .Load( "SongManager", COURSE_GROUP_COLOR_NAME, NUM_COURSE_GROUP_COLORS );
}
void SongManager::InitSongsFromDisk( LoadingWindow *ld )