mirror of
https://github.com/HChaZZY/Stockfish.git
synced 2025-12-16 23:26:23 +08: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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user