fix crash

This commit is contained in:
Glenn Maynard
2004-11-13 22:19:21 +00:00
parent c9067dec65
commit eeb0ac35fb
+1 -1
View File
@@ -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 );