From b9c0288a2c7c4374142de2df10609897d62e1b82 Mon Sep 17 00:00:00 2001 From: Steve Checkoway Date: Fri, 16 May 2008 02:53:49 +0000 Subject: [PATCH] Fix crash when losing. --- stepmania/src/CourseContentsList.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/stepmania/src/CourseContentsList.cpp b/stepmania/src/CourseContentsList.cpp index fe6194daf1..771e87f1eb 100644 --- a/stepmania/src/CourseContentsList.cpp +++ b/stepmania/src/CourseContentsList.cpp @@ -46,6 +46,8 @@ void CourseContentsList::SetFromGameState() // the same number of TrailEntries? // They have to have the same number, and of the same songs, or gameplay // isn't going to line up. + if( GAMESTATE->m_MasterPlayerNumber == PlayerNumber_Invalid ) + return; const Trail *pMasterTrail = GAMESTATE->m_pCurTrail[GAMESTATE->m_MasterPlayerNumber]; if( pMasterTrail == NULL ) return;