X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=src%2Fposition.cpp;h=9af2d9d8103a62b43bc19343e78e64f23e586260;hb=9b1d5bd5343540db412c50ae2944246e3f25d18b;hp=5e64975b0e2c8106b40e2b9e04852dd85ed41380;hpb=a84e4b20491f69d2b6f64e4f9738fc8ba3394990;p=stockfish diff --git a/src/position.cpp b/src/position.cpp index 5e64975b..9af2d9d8 100644 --- a/src/position.cpp +++ b/src/position.cpp @@ -400,7 +400,7 @@ void Position::print(Move move) const { char c = (color_of_piece_on(sq) == BLACK ? '=' : ' '); Piece piece = piece_on(sq); - if (piece == EMPTY && square_color(sq) == BLACK) + if (piece == EMPTY && same_color_squares(sq, SQ_A1)) piece = EMPTY_BLACK_SQ; cout << c << pieceLetters.from_piece(piece) << c << '|';