Skip to content

Commit

Permalink
fixup
Browse files Browse the repository at this point in the history
  • Loading branch information
vondele authored and snicolet committed Nov 8, 2018
1 parent 9315ba6 commit df50ea5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/search.cpp
Expand Up @@ -944,8 +944,8 @@ namespace {
extension = ONE_PLY;

// Extension for king moves that change castling rights
if ( type_of(movedPiece) == KING
&& pos.can_castle(us)
if ( pos.can_castle(us)
&& type_of(movedPiece) == KING
&& depth < 12 * ONE_PLY)
extension = ONE_PLY;

Expand Down

0 comments on commit df50ea5

Please sign in to comment.