mirror of
https://github.com/sockspls/badfish
synced 2025-04-30 16:53:09 +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:
parent
02fd34a5e8
commit
46141b078c
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Reference in a new issue