From 8c8172184ea083eb2c2c4ab8b37cc5372316b69f Mon Sep 17 00:00:00 2001 From: Jacky720 <32578221+Jacky720@users.noreply.github.com> Date: Tue, 14 Nov 2023 16:39:48 -0500 Subject: [PATCH] fix the flag 512 dropdown (again?) --- main.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/main.js b/main.js index 66a1c02..f3478e8 100644 --- a/main.js +++ b/main.js @@ -242,7 +242,8 @@ function updateSaveDataForm(values) { updateSelection(id, values[flagOffset + flagFor[id]]); } - for (let i = 0; i < flagCount; i++) { + // "<=" so 512's options load + for (let i = 0; i <= flagCount; i++) { updateSelection("sav-flag-" + i, values[flagOffset + i], flags[i][2]); // Update checkboxes (should have no ill effects on non-checkbox-based flags) if (document.getElementById("sav-flag-" + i).nodeName === "INPUT") {