Permalink
Browse files

Fix a small bug in king safety

Merged from iPhone Glaurung.

Signed-off-by: Marco Costalba <mcostalba@gmail.com>
  • Loading branch information...
1 parent cc8e915 commit ef8acdc73b7818e97617ba666398be1f9045998e @mcostalba committed Mar 22, 2009
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/evaluate.cpp
View
@@ -782,7 +782,7 @@ namespace {
if ( bit_is_set(p.piece_attacks<QUEEN>(from), to)
&& !bit_is_set(p.pinned_pieces(them), from)
&& !(rook_attacks_bb(to, occ & ClearMaskBB[from]) & p.rooks_and_queens(us))
- && !(rook_attacks_bb(to, occ & ClearMaskBB[from]) & p.rooks_and_queens(us)))
+ && !(bishop_attacks_bb(to, occ & ClearMaskBB[from]) & p.bishops_and_queens(us)))
ei.mateThreat[them] = make_move(from, to);
}

0 comments on commit ef8acdc

Please sign in to comment.