Fix Retry and Back buttons popping the wrong chunk

This commit is contained in:
Gnome Ann 2021-08-25 19:56:57 -04:00
parent 796f5ffd05
commit b0d64985bb
1 changed files with 2 additions and 2 deletions

View File

@ -887,7 +887,7 @@ def actionretry(data):
if(len(vars.actions) > 0):
last_key = vars.actions.get_last_key()
vars.actions.pop()
remove_story_chunk(last_key)
remove_story_chunk(last_key + 1)
calcsubmit('')
#==================================================================#
@ -900,7 +900,7 @@ def actionback():
if(len(vars.actions) > 0):
last_key = vars.actions.get_last_key()
vars.actions.pop()
remove_story_chunk(last_key)
remove_story_chunk(last_key + 1)
#==================================================================#
# Take submitted text and build the text to be given to generator