This commit is contained in:
Joost VandeVondele
2018-11-07 16:55:25 +01:00
committed by Stéphane Nicolet
parent 9315ba60e6
commit df50ea5dc6
+2 -2
View File
@@ -944,8 +944,8 @@ moves_loop: // When in check, search starts from here
extension = ONE_PLY; extension = ONE_PLY;
// Extension for king moves that change castling rights // Extension for king moves that change castling rights
if ( type_of(movedPiece) == KING if ( pos.can_castle(us)
&& pos.can_castle(us) && type_of(movedPiece) == KING
&& depth < 12 * ONE_PLY) && depth < 12 * ONE_PLY)
extension = ONE_PLY; extension = ONE_PLY;