diff --git a/stepmania/src/NotesLoaderBMS.cpp b/stepmania/src/NotesLoaderBMS.cpp index 654a3f5f8d..0a14767c89 100644 --- a/stepmania/src/NotesLoaderBMS.cpp +++ b/stepmania/src/NotesLoaderBMS.cpp @@ -907,7 +907,7 @@ bool BMSLoader::LoadFromDir( CString sDir, Song &out ) if( sTag.find('l') != sTag.npos ) { unsigned lPos = sTag.find('l'); - if( sTag.substr(lPos-2,4) == "solo" ) + if( lPos > 2 && sTag.substr(lPos-2,4) == "solo" ) { // (solo) -- an edit, apparently (Thanks Glenn!) pSteps->SetDifficulty( DIFFICULTY_EDIT );