Skip to content

Commit

Permalink
docs: Tweak comment
Browse files Browse the repository at this point in the history
  • Loading branch information
delucis committed May 23, 2021
1 parent 66ced9d commit 9464821
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/core/reducer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -327,6 +327,7 @@ export function CreateGameReducer({
}

state = initializeDeltalog(state, action);

return {
...state,
G: restore.G,
Expand Down

0 comments on commit 9464821

Please sign in to comment.