X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fposition.cpp;h=6bbb7914ae805e2a6302c0fa6106c9f0f923f483;hp=fefce56e2aa1088621a755f393e390cca534acae;hb=209e94203f8c4d0a48405192d1e71c80f28f3159;hpb=b7ecdaada7e2690dd286c41d3a73463f06fb088f diff --git a/src/position.cpp b/src/position.cpp index fefce56e..6bbb7914 100644 --- a/src/position.cpp +++ b/src/position.cpp @@ -666,7 +666,7 @@ bool Position::gives_check(Move m) const { case CASTLING: { Square kfrom = from; - Square rfrom = to; // Castling is encoded as 'King captures the rook' + Square rfrom = to; // Castling is encoded as 'king captures the rook' Square kto = relative_square(sideToMove, rfrom > kfrom ? SQ_G1 : SQ_C1); Square rto = relative_square(sideToMove, rfrom > kfrom ? SQ_F1 : SQ_D1);