From a441f136de54013157c8d249ed1147a698fbd964 Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Tue, 25 Feb 2003 21:23:21 +0000 Subject: [PATCH] fix off-by-one (oops) --- stepmania/src/GameState.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/stepmania/src/GameState.cpp b/stepmania/src/GameState.cpp index a597780459..b0ba9f00b6 100644 --- a/stepmania/src/GameState.cpp +++ b/stepmania/src/GameState.cpp @@ -210,9 +210,10 @@ RageColor GameState::GetStageColor() int GameState::GetCourseSongIndex() { int iSongIndex = 0; + /* iSongsPlayed includes the current song, so it's 1-based; subtract one. */ for( int p=0; p