1
0
Fork 0
mirror of https://github.com/sockspls/badfish synced 2025-05-01 17:19:36 +00:00

Fix a piece_of_color_and_type() / pieceS_of_color_and_type() typo

Bug introduced in 17c51192

Signed-off-by: Marco Costalba <mcostalba@gmail.com>
This commit is contained in:
Marco Costalba 2009-09-23 14:55:44 +02:00
parent 02fd34a5e8
commit 46141b078c

View file

@ -2014,7 +2014,7 @@ bool Position::is_ok(int* failedStep) const {
for(PieceType pt = PAWN; pt <= KING; pt++) for(PieceType pt = PAWN; pt <= KING; pt++)
for(int i = 0; i < pieceCount[c][pt]; i++) 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; return false;
if (index[piece_list(c, pt, i)] != i) if (index[piece_list(c, pt, i)] != i)