From: Joost VandeVondele Date: Wed, 7 Nov 2018 15:55:25 +0000 (+0100) Subject: fixup X-Git-Url: https://git.sesse.net/?p=stockfish;a=commitdiff_plain;h=df50ea5dc635457dd34fd08c0d332889483f5e7f;hp=9315ba60e68198452940a57292f27e37bc3b6ed2 fixup --- diff --git a/src/search.cpp b/src/search.cpp index 8a32e827..d0bbc967 100644 --- a/src/search.cpp +++ b/src/search.cpp @@ -944,8 +944,8 @@ moves_loop: // When in check, search starts from here 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;