diff --git a/stepmania/src/NotesLoaderSM.cpp b/stepmania/src/NotesLoaderSM.cpp index dc1fd98835..16fd7430f1 100644 --- a/stepmania/src/NotesLoaderSM.cpp +++ b/stepmania/src/NotesLoaderSM.cpp @@ -337,6 +337,7 @@ bool SMLoader::LoadFromSMFile( CString sPath, Song &out ) { BackgroundLayer iLayer = BACKGROUND_LAYER_1; sscanf( sValueName, "BGCHANGES%d", &iLayer ); + iLayer = (BackgroundLayer)(iLayer-1); if( iLayer < 0 && iLayer >= NUM_BackgroundLayer ) { diff --git a/stepmania/src/NotesWriterSM.cpp b/stepmania/src/NotesWriterSM.cpp index 940778b503..d9536f5a4d 100644 --- a/stepmania/src/NotesWriterSM.cpp +++ b/stepmania/src/NotesWriterSM.cpp @@ -103,7 +103,7 @@ void NotesWriterSM::WriteGlobalTags( RageFile &f, const Song &out ) else if( out.GetBackgroundChanges(b).empty() ) continue; // skip else - f.Write( ssprintf("#BGCHANGES%d:", b) ); + f.Write( ssprintf("#BGCHANGES%d:", b+1) ); FOREACH_CONST( BackgroundChange, out.GetBackgroundChanges(b), bgc ) f.PutLine( BackgroundChangeToString(*bgc) );