Fix crash when getting matching steps in endless courses

This commit is contained in:
Jonathan Albert
2020-06-07 20:01:08 -04:00
committed by quietly turning
parent ff75af1f20
commit 3bb1045ce1
+1 -1
View File
@@ -74,7 +74,7 @@ void StepsUtil::GetAllMatchingEndless( Song *pSong, const StepsCriteria &stc, ve
successful = true; successful = true;
} }
if( !successful ) if( !successful && vSteps.size() > 0 )
{ {
Difficulty difficulty = ( *( vSteps.begin() ) )->GetDifficulty(); Difficulty difficulty = ( *( vSteps.begin() ) )->GetDifficulty();
Difficulty previousDifficulty = difficulty; Difficulty previousDifficulty = difficulty;