NotesLoaderSSC - Add empty string check before parsing #DISPLAYBPM, preventing crash on malformed step data
This commit is contained in:
@@ -508,7 +508,7 @@ void SetStepsDisplayBPM(StepsTagInfo& info)
|
|||||||
// #DISPLAYBPM:[xxx][xxx:xxx]|[*];
|
// #DISPLAYBPM:[xxx][xxx:xxx]|[*];
|
||||||
if((*info.params)[1] == "*")
|
if((*info.params)[1] == "*")
|
||||||
{ info.steps->SetDisplayBPM(DISPLAY_BPM_RANDOM); }
|
{ info.steps->SetDisplayBPM(DISPLAY_BPM_RANDOM); }
|
||||||
else
|
else if((*info.params)[1] != "")
|
||||||
{
|
{
|
||||||
info.steps->SetDisplayBPM(DISPLAY_BPM_SPECIFIED);
|
info.steps->SetDisplayBPM(DISPLAY_BPM_SPECIFIED);
|
||||||
float min = std::stof((*info.params)[1]);
|
float min = std::stof((*info.params)[1]);
|
||||||
|
|||||||
Reference in New Issue
Block a user