fix: issue with feature vertex being out of bound

This commit is contained in:
Azgaar 2024-09-25 17:05:31 +02:00
parent 949a486bf8
commit 84c326e347
4 changed files with 7 additions and 7 deletions

View file

@ -158,7 +158,7 @@ function connectVertices({vertices, startingVertex, ofSameType, addToChecked, cl
else if (v2 !== previous && c2 !== c3) next = v2;
else if (v3 !== previous && c1 !== c3) next = v3;
if (!vertices.c[next]) {
if (next >= vertices.c.length) {
ERROR && console.error("ConnectVertices: next vertex is out of bounds");
break;
}