Fix queen check danger
authorFabian Fichter <ianfab@users.noreply.github.com>
Fri, 28 Feb 2020 17:46:42 +0000 (18:46 +0100)
committerFabian Fichter <ianfab@users.noreply.github.com>
Fri, 28 Feb 2020 17:46:42 +0000 (18:46 +0100)
src/evaluate.cpp

index 85d5107..dce81a0 100644 (file)
@@ -494,6 +494,7 @@ namespace {
             // which we can't give a rook check, because rook checks are more valuable.
             queenChecks = (b1 | b2)
                         & get_attacks(Them, QUEEN)
+                        & pos.board_bb()
                         & safe
                         & ~attackedBy[Us][QUEEN]
                         & ~(b1 & attackedBy[Them][ROOK]);