mirror of
https://github.com/Azgaar/Fantasy-Map-Generator.git
synced 2025-12-16 17:31:24 +01:00
routes - don't break if feature is not found
This commit is contained in:
parent
1bec723d4f
commit
f2fcef0284
1 changed files with 1 additions and 1 deletions
|
|
@ -74,7 +74,7 @@ window.Routes = (function () {
|
|||
const ports = allPorts.filter(b => b.port === f); // all ports on the same feature
|
||||
if (!ports.length) return;
|
||||
|
||||
if (features[f].border) addOverseaRoute(f, ports[0]);
|
||||
if (features[f]?.border) addOverseaRoute(f, ports[0]);
|
||||
|
||||
// get inner-map routes
|
||||
for (let s = 0; s < ports.length; s++) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue