Fix crash when getting matching steps in endless courses
This commit is contained in:
committed by
quietly turning
parent
ff75af1f20
commit
3bb1045ce1
+1
-1
@@ -74,7 +74,7 @@ void StepsUtil::GetAllMatchingEndless( Song *pSong, const StepsCriteria &stc, ve
|
||||
successful = true;
|
||||
}
|
||||
|
||||
if( !successful )
|
||||
if( !successful && vSteps.size() > 0 )
|
||||
{
|
||||
Difficulty difficulty = ( *( vSteps.begin() ) )->GetDifficulty();
|
||||
Difficulty previousDifficulty = difficulty;
|
||||
|
||||
Reference in New Issue
Block a user