mirror of
https://github.com/opelly27/Stockfish.git
synced 2026-05-20 05:07:46 +00:00
Fix a wrong check in pos_is_ok()
Bug introduced by revision a44c5cf4f7
of 3/12/2011.
No functional change.
Signed-off-by: Marco Costalba <mcostalba@gmail.com>
This commit is contained in:
+1
-1
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user