diff --git a/stepmania/src/NotesLoaderBMS.cpp b/stepmania/src/NotesLoaderBMS.cpp index decaada6a1..33c73b1b5b 100644 --- a/stepmania/src/NotesLoaderBMS.cpp +++ b/stepmania/src/NotesLoaderBMS.cpp @@ -906,10 +906,6 @@ bool BMSLoader::LoadFromDir( CString sDir, Song &out ) } // Yay, we have our substring. (something like "LION SUKI") - // This is used a LOT, so let's just declare it here and get it - // over with. - unsigned commonSubstrLen = commonSubstring.size(); - /* Create a Steps for each. */ vector apSteps; for( unsigned i=0; iSetDifficulty( DIFFICULTY_MEDIUM ); CString sTag; - if( GetTagFromMap( aBMSData[i], "#title", sTag ) && sTag.size() != commonSubstrLen ) + if( GetTagFromMap( aBMSData[i], "#title", sTag ) && sTag.size() != commonSubstring.size() ) { - sTag = sTag.substr( commonSubstrLen, sTag.size() - commonSubstrLen ); + sTag = sTag.substr( commonSubstring.size(), sTag.size() - commonSubstring.size() ); sTag.ToLower(); // XXX: Someone find me some DDR BMS examples!