Fix course crash. (Not a real fix, since I can't test this code yet.)

This commit is contained in:
Glenn Maynard
2003-06-10 05:28:33 +00:00
parent a382b65e1d
commit 8756019ea6
+5 -1
View File
@@ -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;
}