From adaa0b0b011c752d25b2133c9580ee1eb1d8d47e Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Sun, 20 Jul 2003 02:27:37 +0000 Subject: [PATCH] Allow resetting a CourseContentsList. --- stepmania/src/CourseContentsList.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/stepmania/src/CourseContentsList.cpp b/stepmania/src/CourseContentsList.cpp index b2f293bd28..174f76d85f 100644 --- a/stepmania/src/CourseContentsList.cpp +++ b/stepmania/src/CourseContentsList.cpp @@ -46,7 +46,11 @@ CourseContentsList::CourseContentsList() void CourseContentsList::SetFromCourse( Course* pCourse ) { - ASSERT( pCourse != NULL ); + if( pCourse == NULL ) + { + m_iNumContents = 0; + return; + } m_iNumContents = 0;