fix harvest numeric input bug

pull/24/head
Jake Funke 2019-08-16 17:21:40 +00:00
parent 8fd35a5927
commit 9bb1f74f74
1 changed files with 1 additions and 1 deletions

View File

@ -276,7 +276,7 @@ class CursedMenu(object):
return
# this is a number; check to see if we can set it
if user_in >= ord('1') and user_in <= ord(str(min(6,len(self.options)))):
if user_in >= ord('1') and user_in <= ord(str(min(7,len(self.options)))):
self.selected = user_in - ord('0') - 1 # convert keypress back to a number, then subtract 1 to get index
return