X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=src%2Fposition.cpp;h=abac6efc1ef56e4b57a22734558c5d1c3564348a;hb=20390fcb3c89160f748881f8ecd9a7706c9e9525;hp=47e1af2704e3eb21e08026d09d2a3c0bbe5dd461;hpb=bac4da70c91bc4ac5def1dd6ae991aca3370299c;p=stockfish 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--) {