From 8756019ea63f0dbdf24d5a7cbd57f16f181f3b1a Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Tue, 10 Jun 2003 05:28:33 +0000 Subject: [PATCH] Fix course crash. (Not a real fix, since I can't test this code yet.) --- stepmania/src/DancingCharacters.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/stepmania/src/DancingCharacters.cpp b/stepmania/src/DancingCharacters.cpp index f8b94603cb..fa63aa43e5 100644 --- a/stepmania/src/DancingCharacters.cpp +++ b/stepmania/src/DancingCharacters.cpp @@ -74,7 +74,11 @@ DancingCharacters::DancingCharacters() m_fCameraHeightEnd = CAMERA_REST_LOOK_AT_HEIGHT; m_fLookAtHeight = CAMERA_REST_LOOK_AT_HEIGHT; m_fThisCameraStartBeat = 0; - m_fThisCameraEndBeat = GAMESTATE->m_pCurSong->m_fFirstBeat; + m_fThisCameraEndBeat = 0; + /* XXX: This is being initialized before m_pCurSong is set by ScreenGameplay + * in course mode. Init in first update? */ + if( GAMESTATE->m_pCurSong ) + m_fThisCameraEndBeat = GAMESTATE->m_pCurSong->m_fFirstBeat; }