From cb356f25b3c9e6101c306dc53f3f8446e28984a3 Mon Sep 17 00:00:00 2001 From: Fabian Fichter Date: Sat, 27 Feb 2021 11:26:02 +0100 Subject: [PATCH] Fix assertion for atomic No functional change. --- src/position.cpp | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/src/position.cpp b/src/position.cpp index 065f34e..332aadf 100644 --- a/src/position.cpp +++ b/src/position.cpp @@ -1752,6 +1752,8 @@ void Position::undo_move(Move m) { : ~unpromotedBpc); } } + // Reset piece since it exploded itself + pc = piece_on(to); } // Remove gated piece -- 1.7.0.4