fix rest length calculation

This commit is contained in:
Dyakin 2018-08-21 18:18:18 +03:00
parent c16e3d1d0b
commit 76e5ff0daa

View File

@ -135,7 +135,7 @@
return null;
}
while (length > this.dataArray[i].pathLength && i < ii) {
while (i < ii && length > this.dataArray[i].pathLength) {
length -= this.dataArray[i].pathLength;
++i;
}