X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=src%2Fnotation.cpp;h=bb4a713cc2e563752bf17cefd57720b121de6430;hb=bf706c4a4ff06e91edf8c24685d24130146f88d4;hp=85b0abdd2914e6c268da8408cc888de0828f3b5b;hpb=3b49aeb4f22569c2b5d5ca830858c4dd584fae7f;p=stockfish diff --git a/src/notation.cpp b/src/notation.cpp index 85b0abdd..bb4a713c 100644 --- a/src/notation.cpp +++ b/src/notation.cpp @@ -137,7 +137,7 @@ const string move_to_san(Position& pos, Move m) { { Square sq = pop_lsb(&attackers); - // Pinned pieces are not included in the possible sub-set + // If the move is illegal, the piece is not included in the sub-set if (!pos.pl_move_is_legal(make_move(sq, to), pos.pinned_pieces())) continue;