Fix course crash. (Not a real fix, since I can't test this code yet.)
This commit is contained in:
@@ -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;
|
||||
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user