Skip to content

Commit

Permalink
fix undo state error
Browse files Browse the repository at this point in the history
  • Loading branch information
rainlizard committed May 28, 2024
1 parent d711f30 commit 2704201
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions Scenes/ThreadedSaveUndo.gd
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,8 @@ func run_threaded_undo_save(_userdata):
var compare_state = create_state()

# For some reason TNGFX occasionally breaks
if compare_state.has("TNGFX") == false:
oMessage.big("Undo state error 1", "TNGFX buffer broke")
continue
elif compare_state["TNGFX"] == null:
oMessage.big("Undo state error 2", "TNGFX buffer broke")
if compare_state.has("TNGFX") and compare_state["TNGFX"] == null:
oMessage.big("Undo state error", "TNGFX buffer broke")
continue

if oUndoStates.are_states_equal(consistent_state, compare_state):
Expand Down

0 comments on commit 2704201

Please sign in to comment.