From 16dab959bf96fb63e4fca7a614ca5a47438bb0ba Mon Sep 17 00:00:00 2001 From: AJ Kelly Date: Fri, 7 Oct 2011 12:43:08 -0500 Subject: [PATCH] [NotesLoaderSM] If the difficulty for a Steps is not set, set it to 1. Should fix issue 571, hopefully. --- src/NotesLoaderSM.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/NotesLoaderSM.cpp b/src/NotesLoaderSM.cpp index e32485ddca..73c9cf36cf 100644 --- a/src/NotesLoaderSM.cpp +++ b/src/NotesLoaderSM.cpp @@ -103,6 +103,12 @@ void SMLoader::LoadFromTokens( out.SetDifficulty( Difficulty_Challenge ); } + if( sMeter.empty() ) + { + // some simfiles (e.g. X-SPECIALs from Zenius-I-Vanisher) don't + // have a meter on certain steps. Make the meter 1 in these instances. + sMeter = "1"; + } out.SetMeter( StringToInt(sMeter) ); out.SetSMNoteData( sNoteData );