X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fposition.cpp;h=d14f04169b95b1a2751711756dea4e730fc7f098;hp=f0bbff449427eaa09509645876532ebfe5b45f8d;hb=ad43ce143664953087b44dd3b4324f77c212bd46;hpb=a695ed65a8b98c94a928862be76500485b38c414 diff --git a/src/position.cpp b/src/position.cpp index f0bbff44..d14f0416 100644 --- a/src/position.cpp +++ b/src/position.cpp @@ -338,7 +338,7 @@ void Position::print(Move move) const { Piece piece = piece_on(sq); char c = (color_of(piece) == BLACK ? '=' : ' '); - if (piece == NO_PIECE && color_of(sq) == DARK) + if (piece == NO_PIECE && !opposite_colors(sq, SQ_A1)) piece++; // Index the dot cout << c << PieceToChar[piece] << c << '|';