diff --git a/modules/ui/burgs-editor.js b/modules/ui/burgs-editor.js index 6cc55dc5..d3e8ad1f 100644 --- a/modules/ui/burgs-editor.js +++ b/modules/ui/burgs-editor.js @@ -73,7 +73,7 @@ function editBurgs() { const province = prov ? pack.provinces[prov].name : ""; const culture = pack.cultures[b.culture].name; - lines += `
+ lines += `
diff --git a/modules/ui/coastline-editor.js b/modules/ui/coastline-editor.js index ba8ea663..0a604da8 100644 --- a/modules/ui/coastline-editor.js +++ b/modules/ui/coastline-editor.js @@ -32,7 +32,8 @@ function editCoastline(node = d3.event.target) { const f = +elSelected.attr("data-f"); // feature id const v = pack.features[f].vertices; // coastline outer vertices - const c = [... new Set(v.map(v => pack.vertices.c[v]).flat())]; + const l = pack.cells.i.length; + const c = [... new Set(v.map(v => pack.vertices.c[v]).flat())].filter(c => c < l); debug.select("#vertices").selectAll("polygon").data(c).enter().append("polygon") .attr("points", d => getPackPolygon(d)).attr("data-c", d => d);