fix a crash with songs that have an Edit chart as the only difficulty.

This commit is contained in:
AJ Kelly
2009-11-02 19:47:45 +00:00
parent 07b4a6edd7
commit c42366c642
+3 -2
View File
@@ -737,9 +737,10 @@ void Song::ReCalculateRadarValuesAndLastBeat()
if( pSteps->IsAutogen() )
continue;
/* Don't calculate with edits. Otherwise, edits installed on the machine could
/* Don't calculate with edits unless the only chart available
* is an edit. Otherwise, edits installed on the machine could
* extend the length of the song. */
if( pSteps->IsAnEdit() )
if( pSteps->IsAnEdit() && m_vpSteps.size() > 1 )
continue;
// Don't set first/last beat based on lights. They often start very