From 71edd1ffa0dd50e23b1f7b67ae29b34acfee6836 Mon Sep 17 00:00:00 2001 From: Chris Danford Date: Wed, 14 Apr 2004 06:00:32 +0000 Subject: [PATCH] fix possible divide by 0 --- stepmania/src/ScreenJukebox.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/stepmania/src/ScreenJukebox.cpp b/stepmania/src/ScreenJukebox.cpp index 6620826ba1..178fff3c89 100644 --- a/stepmania/src/ScreenJukebox.cpp +++ b/stepmania/src/ScreenJukebox.cpp @@ -65,6 +65,9 @@ bool ScreenJukebox::SetSong( bool bDemonstration ) } } + if( vDifficultiesToShow.empty() ) + vDifficultiesToShow.push_back( DIFFICULTY_EASY ); + // // Search for a Song and Steps to play during the demo //