From 4d5b270b12d15b5cd9a8192220e8e98455bfb558 Mon Sep 17 00:00:00 2001 From: Nick Date: Mon, 25 Nov 2019 21:45:55 -0700 Subject: [PATCH] update --- play.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/play.py b/play.py index d280709..95ef288 100644 --- a/play.py +++ b/play.py @@ -99,7 +99,10 @@ def play_aidungeon_2(): story_manager.story.actions = story_manager.story.actions[:-1] story_manager.story.results = story_manager.story.results[:-1] print("Last action reverted. ") - print(story_manager.story.results[-1]) + if len(story_manager.story.results) > 0: + print(story_manager.story.results[-1]) + else: + print(story_manager.story.story_start) continue elif action[0] == '"': action = "You say " + action