diff --git a/stepmania/src/CourseContentsList.cpp b/stepmania/src/CourseContentsList.cpp index 9fd2cbda14..b8efaf2b1b 100644 --- a/stepmania/src/CourseContentsList.cpp +++ b/stepmania/src/CourseContentsList.cpp @@ -23,6 +23,12 @@ CourseContentsList::CourseContentsList() m_fTimeUntilScroll = 0; m_fItemAtTopOfList = 0; + ContentsBarHeight = 1; + ContentsBarWidth = 1; +} + +void CourseContentsList::Load() +{ m_quad.SetUseZBuffer( true ); for( int i = 0; i < MAX_TOTAL_CONTENTS; ++i ) { @@ -36,7 +42,6 @@ CourseContentsList::CourseContentsList() ContentsBarWidth = m_CourseContentDisplays[0].GetUnzoomedWidth(); } - void CourseContentsList::SetFromGameState() { Course* pCourse = GAMESTATE->m_pCurCourse; diff --git a/stepmania/src/CourseContentsList.h b/stepmania/src/CourseContentsList.h index 88d0f02343..65718c2188 100644 --- a/stepmania/src/CourseContentsList.h +++ b/stepmania/src/CourseContentsList.h @@ -22,6 +22,8 @@ class CourseContentsList : public ActorFrame { public: CourseContentsList(); + + void Load(); virtual void Update( float fDeltaTime ); virtual void DrawPrimitives();