mirror of
https://github.com/HChaZZY/Stockfish.git
synced 2025-12-21 01:27:16 +08: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:
@@ -1677,7 +1677,7 @@ bool Position::pos_is_ok(int* failedStep) const {
|
|||||||
if (debugBitboards)
|
if (debugBitboards)
|
||||||
{
|
{
|
||||||
// The intersection of the white and black pieces must be empty
|
// The intersection of the white and black pieces must be empty
|
||||||
if (!(pieces(WHITE) & pieces(BLACK)))
|
if (pieces(WHITE) & pieces(BLACK))
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
// The union of the white and black pieces must be equal to all
|
// The union of the white and black pieces must be equal to all
|
||||||
|
|||||||
Reference in New Issue
Block a user