X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fnotation.cpp;h=d017c0790cc801b42842b949eb9c2c85d210e788;hp=3f79a44b6290d246a95af9b85506b71aecad0e6a;hb=13d1f0ae4301b86c610a58332c3c19d9101704da;hpb=ecd07e51d0f03ccd3e41e5634518b299989254dd 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); }