Skip to content

Commit

Permalink
fix the flag 512 dropdown (again?)
Browse files Browse the repository at this point in the history
  • Loading branch information
Jacky720 authored Nov 14, 2023
1 parent 9566f36 commit 8c81721
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion main.js
Original file line number Diff line number Diff line change
Expand Up @@ -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") {
Expand Down

0 comments on commit 8c81721

Please sign in to comment.