Skip to content

Commit

Permalink
Updated to PHP Chess 1.5.17
Browse files Browse the repository at this point in the history
  • Loading branch information
programarivm committed Feb 4, 2025
1 parent c5a5f3b commit 95e6d05
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/Command/Game/Mode/AbstractMode.php
Original file line number Diff line number Diff line change
Expand Up @@ -103,8 +103,7 @@ public function res($params, $cmd)
];

case UndoCommand::class:
$board = $this->game->getBoard()->undo();
$this->game->setBoard($board);
$this->game->getBoard()->undo();
return [
$cmd->name => [
...(array) $this->game->state(),
Expand Down

0 comments on commit 95e6d05

Please sign in to comment.