diff --git a/stepmania/src/ScreenGameplay.cpp b/stepmania/src/ScreenGameplay.cpp index c3fdd9fdbd..c4132669c0 100644 --- a/stepmania/src/ScreenGameplay.cpp +++ b/stepmania/src/ScreenGameplay.cpp @@ -1618,9 +1618,8 @@ void ScreenGameplay::UpdateLights() { float fPositionSeconds = GAMESTATE->m_fMusicSeconds + LIGHTS_FALLOFF_SECONDS/2; // trigger the light a tiny bit early float fSongBeat = GAMESTATE->m_pCurSong->GetBeatFromElapsedTime( fPositionSeconds ); + const int iSongRow = BeatToNoteRowNotRounded( fSongBeat ); - int iSongRow = BeatToNoteRowNotRounded( fSongBeat ); - iSongRow = max( 0, iSongRow ); static int iRowLastCrossed = 0; float fBeatLast = roundf(NoteRowToBeat(iRowLastCrossed));