X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fposition.cpp;h=e20c822f5998902ba2149d13504bd9846a1833d0;hp=7d0cde2146dc29e50a905f0090cf9378b1269943;hb=b48439e90643cb6f65f9e34d1421976883c12efc;hpb=6b9a22b40d37d27ad10cafd8697d96e90a586f8a diff --git a/src/position.cpp b/src/position.cpp index 7d0cde21..e20c822f 100644 --- a/src/position.cpp +++ b/src/position.cpp @@ -1192,7 +1192,6 @@ bool Position::pos_is_ok(int* failedStep) const { } if (step == Lists) - { for (Piece pc : Pieces) { if (pieceCount[pc] != popcount(pieces(color_of(pc), type_of(pc)))) @@ -1202,9 +1201,6 @@ bool Position::pos_is_ok(int* failedStep) const { if (board[pieceList[pc][i]] != pc || index[pieceList[pc][i]] != i) return false; } - if (pieceCount[PAWN] > FILE_NB) - return false; - } if (step == Castling) for (Color c = WHITE; c <= BLACK; ++c)