projects
/
fairystockfish.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(parent:
02fd34a
)
Fix a piece_of_color_and_type() / pieceS_of_color_and_type() typo
author
Marco Costalba
<mcostalba@gmail.com>
Wed, 23 Sep 2009 12:55:44 +0000 (14:55 +0200)
committer
Marco Costalba
<mcostalba@gmail.com>
Wed, 23 Sep 2009 16:01:30 +0000 (17:01 +0100)
Bug introduced in
17c51192
Signed-off-by: Marco Costalba <mcostalba@gmail.com>
src/position.cpp
patch
|
blob
|
history
diff --git
a/src/position.cpp
b/src/position.cpp
index
96b455f
..
1725acb
100644
(file)
--- a/
src/position.cpp
+++ b/
src/position.cpp
@@
-2014,7
+2014,7
@@
bool Position::is_ok(int* failedStep) const {
for(PieceType pt = PAWN; pt <= KING; pt++)
for(int i = 0; i < pieceCount[c][pt]; i++)
{
- if (piece_on(piece_list(c, pt, i)) != (pieces(pt, c)))
+ if (piece_on(piece_list(c, pt, i)) != piece_of_color_and_type(c, pt))
return false;
if (index[piece_list(c, pt, i)] != i)