Bail out from the loop if we run out of data.

This commit is contained in:
Henrik Andersson
2011-05-29 17:10:35 +02:00
parent 1fd5211529
commit 9038ab8d65
+4
View File
@@ -333,6 +333,10 @@ static bool LoadFromDWITokens(
if( iCol2 != -1 )
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] == '!' )
{
i++;