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:
parent
6a48325c49
commit
ea5616785e
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue