fix: burg regeneration for ports

This commit is contained in:
Azgaar 2026-01-08 15:51:18 +01:00
parent cf2c91da62
commit d6109a4919
3 changed files with 68 additions and 66 deletions

View file

@ -29,9 +29,9 @@ window.Routes = (function () {
const capitalsByFeature = {};
const portsByFeature = {};
const addBurg = (object, feature, burg) => {
if (!object[feature]) object[feature] = [];
object[feature].push(burg);
const addBurg = (collection, feature, burg) => {
if (!collection[feature]) collection[feature] = [];
collection[feature].push(burg);
};
for (const burg of burgs) {