X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=src%2Fposition.cpp;h=9376aa91ad5b06fbf06ca3f27a0b9a79f78e8db6;hb=2608b9249d9c25a699c8db8725e35bd4ec0b65ab;hp=dec3371321d20558fb75f128b2f104ad1eb76d08;hpb=6a48325c49dfd58a0226b2085cd9419531d5ec1e;p=stockfish diff --git a/src/position.cpp b/src/position.cpp index dec33713..9376aa91 100644 --- a/src/position.cpp +++ b/src/position.cpp @@ -1677,7 +1677,7 @@ bool Position::pos_is_ok(int* failedStep) const { if (debugBitboards) { // The intersection of the white and black pieces must be empty - if (!(pieces(WHITE) & pieces(BLACK))) + if (pieces(WHITE) & pieces(BLACK)) return false; // The union of the white and black pieces must be equal to all