From 946482149dbb62686113e509ffbe13ed7a229eaf Mon Sep 17 00:00:00 2001 From: delucis Date: Sun, 23 May 2021 07:05:31 +0200 Subject: [PATCH] docs: Tweak comment --- src/core/reducer.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/core/reducer.ts b/src/core/reducer.ts index 3839cd1bf..b10ae54f1 100644 --- a/src/core/reducer.ts +++ b/src/core/reducer.ts @@ -314,7 +314,7 @@ export function CreateGameReducer({ return state; } - // Only allow events and undoable moves to be undone. + // If undoing a move, check it is undoable. if (last.moveType) { const lastMove: Move = game.flow.getMove( restore.ctx, @@ -327,6 +327,7 @@ export function CreateGameReducer({ } state = initializeDeltalog(state, action); + return { ...state, G: restore.G,