From b6108592b66cc14573e5614aa5c878b71c6be6cb Mon Sep 17 00:00:00 2001 From: Nathanael Sensfelder Date: Sun, 30 Aug 2020 02:14:07 +0200 Subject: Changes how choices are handled. --- tonkadur_ui.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tonkadur_ui.py') diff --git a/tonkadur_ui.py b/tonkadur_ui.py index de1001e..85f91e4 100644 --- a/tonkadur_ui.py +++ b/tonkadur_ui.py @@ -57,7 +57,7 @@ try: current_choice += 1 user_choice = input("Your choice? ") - state.resolve_choice_to(result['choices'][int(user_choice)][1]) + state.resolve_choice_to(int(user_choice)) elif (result_category == "event"): print("Unhandled event:" + str(result)) -- cgit v1.2.3-70-g09d2