From 8b2b70dd1a8888c1bd533fac84de1539a99ea71e Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Wed, 4 Sep 2002 01:32:52 +0000 Subject: [PATCH] Fix assert fail when mashing the course list. --- stepmania/src/CourseContentsFrame.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/stepmania/src/CourseContentsFrame.cpp b/stepmania/src/CourseContentsFrame.cpp index 7b38a11229..7b9b24e500 100644 --- a/stepmania/src/CourseContentsFrame.cpp +++ b/stepmania/src/CourseContentsFrame.cpp @@ -109,6 +109,7 @@ void CourseContentsFrame::SetFromCourse( Course* pCourse ) printf( "Adding song '%s'\n", pSong->m_sMainTitle ); m_CourseContentDisplays[m_iNumContents].Load( m_iNumContents+1, pSong, pNotes ); m_CourseContentDisplays[m_iNumContents].SetXY( 0, -((MAX_VISIBLE_CONTENTS-1)/2) * CONTENTS_BAR_HEIGHT ); + m_CourseContentDisplays[m_iNumContents].StopTweening(); m_CourseContentDisplays[m_iNumContents].BeginTweening( m_iNumContents*0.1f ); m_CourseContentDisplays[m_iNumContents].SetTweenY( (-(MAX_VISIBLE_CONTENTS-1)/2 + m_iNumContents) * CONTENTS_BAR_HEIGHT );