From 534ac086fe9712e0b7ee9f051c5cc816430af04b Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Sun, 27 Jul 2003 18:46:38 +0000 Subject: [PATCH] phase out GetFirstStageInfo --- stepmania/src/SongManager.cpp | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/stepmania/src/SongManager.cpp b/stepmania/src/SongManager.cpp index 2f75955196..35a88baac5 100644 --- a/stepmania/src/SongManager.cpp +++ b/stepmania/src/SongManager.cpp @@ -886,14 +886,15 @@ bool SongManager::GetExtraStageInfoFromCourse( bool bExtra2, CString sPreferredG course.LoadFromCRSFile( sCoursePath ); if( course.GetEstimatedNumStages() <= 0 ) return false; - CString sModifiers; - if( !course.GetFirstStageInfo( pSongOut, pNotesOut, sModifiers, GAMESTATE->GetCurrentStyleDef()->m_NotesType ) ) + vector ci; + course.GetCourseInfo( GAMESTATE->GetCurrentStyleDef()->m_NotesType, ci ); + if( ci.empty() ) return false; po_out.Init(); - po_out.FromString( sModifiers ); + po_out.FromString( ci[0].Modifiers ); so_out.Init(); - so_out.FromString( sModifiers ); + so_out.FromString( ci[0].Modifiers ); return true; }