From ea5616785e7cc35808d75897282109c51e823caa Mon Sep 17 00:00:00 2001 From: Marco Costalba Date: Mon, 20 Feb 2012 19:32:15 +0100 Subject: [PATCH] Fix a wrong check in pos_is_ok() Bug introduced by revision a44c5cf4f77b05a038 of 3/12/2011. No functional change. Signed-off-by: Marco Costalba --- src/position.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.39.2