summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNathanael Sensfelder <SpamShield0@MultiAgentSystems.org>2020-08-30 02:14:07 +0200
committerNathanael Sensfelder <SpamShield0@MultiAgentSystems.org>2020-08-30 02:14:07 +0200
commitb6108592b66cc14573e5614aa5c878b71c6be6cb (patch)
treee6c262127a79f8142b9e0ebd443ab0af398b0aa8 /tonkadur_ui.py
parent1609330b4e4a1ad1e3ed26db75efdab5f9729663 (diff)
Changes how choices are handled.
Diffstat (limited to 'tonkadur_ui.py')
-rw-r--r--tonkadur_ui.py2
1 files changed, 1 insertions, 1 deletions
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))