[NotesLoaderSM] If the difficulty for a Steps is not set, set it to 1. Should fix issue 571, hopefully.

This commit is contained in:
AJ Kelly
2011-10-07 12:43:08 -05:00
parent ba333dfa04
commit 16dab959bf
+6
View File
@@ -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 );