From fb1cc4c9196f7f79ba24bf0d88ba89863db3f6fd Mon Sep 17 00:00:00 2001 From: O Max Anderson Date: Thu, 30 May 2019 23:14:57 -0500 Subject: [PATCH] #257 Update culture namesbase on change --- modules/ui/cultures-editor.js | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/modules/ui/cultures-editor.js b/modules/ui/cultures-editor.js index 1775e51a..ab3af50e 100644 --- a/modules/ui/cultures-editor.js +++ b/modules/ui/cultures-editor.js @@ -197,11 +197,7 @@ function editCultures() { function cultureUpdateBase() { const culture = +this.parentNode.dataset.id; const v = +this.value; - pack.cultures.forEach(el => { - if (el.i === culture) { - el.base = v; - } - }); + pack.cultures.find(el => el.i === culture).base = v; } function cultureRegenerateBurgs() {