Restrict mobility of pinned pieces
[stockfish] / src / notation.cpp
index 3f79a44b6290d246a95af9b85506b71aecad0e6a..d017c0790cc801b42842b949eb9c2c85d210e788 100644 (file)
@@ -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);
           }