Merge pull request #97 from ebolam/united

Fix for retry causing issues for future redo actions
This commit is contained in:
henk717 2022-03-11 17:41:49 +01:00 committed by GitHub
commit 2e1b3c82f9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View File

@ -2871,6 +2871,8 @@ def actionretry(data):
last_key = vars.actions.get_last_key()
vars.actions.pop()
remove_story_chunk(last_key + 1)
#for the redo to not get out of whack, need to reset the max # in the actions sequence
vars.actions.set_next_id(last_key)
vars.recentback = False
vars.recentedit = False
vars.lua_koboldbridge.feedback = None