Bail out from the loop if we run out of data.
This commit is contained in:
@@ -333,6 +333,10 @@ static bool LoadFromDWITokens(
|
|||||||
if( iCol2 != -1 )
|
if( iCol2 != -1 )
|
||||||
newNoteData.SetTapNote(iCol2, iIndex, TAP_ORIGINAL_TAP);
|
newNoteData.SetTapNote(iCol2, iIndex, TAP_ORIGINAL_TAP);
|
||||||
|
|
||||||
|
if(i>=sStepData.length()) {
|
||||||
|
break;//we ran out of data while looking for the ending > mark
|
||||||
|
}
|
||||||
|
|
||||||
if( sStepData[i] == '!' )
|
if( sStepData[i] == '!' )
|
||||||
{
|
{
|
||||||
i++;
|
i++;
|
||||||
|
|||||||
Reference in New Issue
Block a user