From f537c14175b95b980c092793348fde22febe513d Mon Sep 17 00:00:00 2001 From: Chris Danford Date: Sun, 6 Jun 2004 20:08:11 +0000 Subject: [PATCH] fix AV on switch from arcade to nonstop --- stepmania/src/CourseContentsList.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/stepmania/src/CourseContentsList.cpp b/stepmania/src/CourseContentsList.cpp index 2218958d1e..831a39804d 100644 --- a/stepmania/src/CourseContentsList.cpp +++ b/stepmania/src/CourseContentsList.cpp @@ -76,7 +76,9 @@ void CourseContentsList::SetFromGameState() const TrailEntry* pte[NUM_PLAYERS]; FOREACH_EnabledPlayer(pn) { - Trail* pTrail = GAMESTATE->m_pCurTrail[pn]; + Trail* pTrail = GAMESTATE->m_pCurTrail[pn]; + if( pTrail == NULL ) + continue; pte[pn] = &pTrail->m_vEntries[i]; } display.LoadFromTrailEntry( m_iNumContents+1, pte );