projects
/
fairystockfish.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(parent:
4ea8452
)
Fix assertion for atomic
author
Fabian Fichter
<ianfab@users.noreply.github.com>
Sat, 27 Feb 2021 10:26:02 +0000 (11:26 +0100)
committer
Fabian Fichter
<ianfab@users.noreply.github.com>
Sat, 27 Feb 2021 10:26:02 +0000 (11:26 +0100)
No functional change.
src/position.cpp
patch
|
blob
|
history
diff --git
a/src/position.cpp
b/src/position.cpp
index
065f34e
..
332aadf
100644
(file)
--- 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