1
0
Fork 0
mirror of https://github.com/sockspls/badfish synced 2025-05-01 09:13:08 +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:
Marco Costalba 2012-02-20 19:32:15 +01:00
parent 6a48325c49
commit ea5616785e

View file

@ -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