Skip to content

Commit

Permalink
Fix an issue selecting >1 digit fomod options
Browse files Browse the repository at this point in the history
Historically, selecting fomod options above the number 9 caused
wrapping. For example, the number 10 would toggle 0, 11 would toggle 1,
etc. This has been fixed.
  • Loading branch information
cyberrumor committed Oct 11, 2023
1 parent 4c1d530 commit 6dd791c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ammo/controller.py
Original file line number Diff line number Diff line change
Expand Up @@ -724,7 +724,7 @@ def configure(self, index) -> bool:
# Convert selection to int and validate.
try:
if selection.split():
selection = selection[-1]
selection = selection.split()[-1]

selection = int(selection)
if selection not in range(len(page["plugins"])):
Expand Down

0 comments on commit 6dd791c

Please sign in to comment.