X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fposition.cpp;h=abac6efc1ef56e4b57a22734558c5d1c3564348a;hp=47e1af2704e3eb21e08026d09d2a3c0bbe5dd461;hb=08265aef81d63b1ccf22e1e1818d0edb64e0528e;hpb=9d1e4d041d97d2a11a430a3bb6fa360fca31e69f diff --git a/src/position.cpp b/src/position.cpp index 47e1af27..abac6efc 100644 --- a/src/position.cpp +++ b/src/position.cpp @@ -275,9 +275,8 @@ void Position::print(Move m) const { std::cout << std::endl; if (m != MOVE_NONE) { - Position p(*this); std::string col = (color_of_piece_on(move_from(m)) == BLACK ? ".." : ""); - std::cout << "Move is: " << col << move_to_san(p, m) << std::endl; + std::cout << "Move is: " << col << move_to_san(*this, m) << std::endl; } for (Rank rank = RANK_8; rank >= RANK_1; rank--) {