X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fnotation.cpp;h=d017c0790cc801b42842b949eb9c2c85d210e788;hp=3f79a44b6290d246a95af9b85506b71aecad0e6a;hb=dd4e5db2be2eb5631d739af634cb33bea2f3fddd;hpb=a0cc15ccbc5dc48ea3c871915c8f96c7a624597d diff --git a/src/notation.cpp b/src/notation.cpp index 3f79a44b..d017c079 100644 --- a/src/notation.cpp +++ b/src/notation.cpp @@ -133,7 +133,7 @@ const string move_to_san(Position& pos, Move m) { while (b) { Move move = make_move(pop_lsb(&b), to); - if (!pos.legal(move, pos.pinned_pieces())) + if (!pos.legal(move, pos.pinned_pieces(pos.side_to_move()))) others ^= from_sq(move); }