From c42366c6428ae737b41c8d550a729d4bb0a4b57e Mon Sep 17 00:00:00 2001 From: AJ Kelly Date: Mon, 2 Nov 2009 19:47:45 +0000 Subject: [PATCH] fix a crash with songs that have an Edit chart as the only difficulty. --- stepmania/src/Song.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/stepmania/src/Song.cpp b/stepmania/src/Song.cpp index c65ac7c0d0..d1dabe15f2 100644 --- a/stepmania/src/Song.cpp +++ b/stepmania/src/Song.cpp @@ -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