From 36fba3329cb5149280ca7baa0d4c517319336879 Mon Sep 17 00:00:00 2001 From: Ruichka <42318266+Ruichka@users.noreply.github.com> Date: Sun, 21 Apr 2024 13:16:55 +0300 Subject: [PATCH] Fix regiments getting bugged when merging states (#1067) * Fix military bug when merging states * Update versioning to 1.97.06 --- modules/dynamic/editors/states-editor.js | 2 +- modules/ui/editors.js | 2 +- versioning.js | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/modules/dynamic/editors/states-editor.js b/modules/dynamic/editors/states-editor.js index 70a45017..df9173dd 100644 --- a/modules/dynamic/editors/states-editor.js +++ b/modules/dynamic/editors/states-editor.js @@ -1427,7 +1427,7 @@ function openStateMergeDialog() { if (element) { element.id = newId; element.dataset.state = rulingStateId; - element.dataset.i = newIndex; + element.dataset.id = newIndex; rulingStateArmy.appendChild(element); } }); diff --git a/modules/ui/editors.js b/modules/ui/editors.js index 58c1c18b..3b9181d1 100644 --- a/modules/ui/editors.js +++ b/modules/ui/editors.js @@ -1224,7 +1224,7 @@ function refreshAllEditors() { // dynamically loaded editors async function editStates() { if (customization) return; - const Editor = await import("../dynamic/editors/states-editor.js?v=1.96.06"); + const Editor = await import("../dynamic/editors/states-editor.js?v=1.97.06"); Editor.open(); } diff --git a/versioning.js b/versioning.js index 5f3d0848..1803ec02 100644 --- a/versioning.js +++ b/versioning.js @@ -1,7 +1,7 @@ "use strict"; // version and caching control -const version = "1.97.05"; // generator version, update each time +const version = "1.97.06"; // generator version, update each time { document.title += " v" + version;