diff --git a/modules/osm/intersection.js b/modules/osm/intersection.js index ffb3b6c49..e1dfbb707 100644 --- a/modules/osm/intersection.js +++ b/modules/osm/intersection.js @@ -380,7 +380,7 @@ export function osmIntersection(graph, startVertexId, maxDistance) { if (currPath.indexOf(way.id) !== -1 && currPath.length >= 3) continue; // Check all "current" restrictions (where we've already walked the `FROM`) - var restrict; + var restrict = null; for (j = 0; j < currRestrictions.length; j++) { var restriction = currRestrictions[j]; var f = restriction.memberByRole('from');