From 1e7d474a1202ed2da79907f26dd93c6bced52bf2 Mon Sep 17 00:00:00 2001 From: Chris Gomez Date: Tue, 4 Mar 2003 03:22:51 +0000 Subject: [PATCH] Fix courses playing the first song again after the last song is completed --- stepmania/src/ScreenGameplay.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stepmania/src/ScreenGameplay.cpp b/stepmania/src/ScreenGameplay.cpp index 62912b58c3..2489704f47 100644 --- a/stepmania/src/ScreenGameplay.cpp +++ b/stepmania/src/ScreenGameplay.cpp @@ -537,7 +537,7 @@ bool ScreenGameplay::IsLastSong() if( pCourse->m_bRepeat ) return false; else - return GAMESTATE->GetCourseSongIndex() == (int)m_apCourseSongs.size(); + return GAMESTATE->GetCourseSongIndex()+1 == (int)m_apCourseSongs.size(); // GetCourseSongIndex() is 0-based but size() is not } break; default: