[CSV] Updated csv so it won't overflow

Updated accoding to momo5502's request.
This commit is contained in:
Joelrau 2020-09-02 11:50:01 +03:00 committed by Maurice Heumann
parent 272addfd4f
commit 86bfc41812

View File

@ -110,7 +110,7 @@ namespace Utils
//++i;
continue;
}
else if (!isString && (row[i] == '#' || (row[i] == '/' && row[i+1] == '/') ) && allowComments) // Skip comments. I know CSVs usually don't have comments, but in this case it's useful
else if (!isString && (row[i] == '#' || (row[i] == '/' && (i + 1) < row.size() && row[i + 1] == '/') ) && allowComments) // Skip comments. I know CSVs usually don't have comments, but in this case it's useful
{
return;
}