]> git.sesse.net Git - stockfish/blobdiff - src/position.cpp
Small touches in position.h
[stockfish] / src / position.cpp
index 6075117426972adf189674af9d0ce7ac4f5b8816..80fa16dd3a5b8c0cd6eb7cb6f18034076c9a9d52 100644 (file)
@@ -342,7 +342,7 @@ void Position::print(Move move) const {
           Square sq = make_square(file, rank);
           Piece piece = piece_on(sq);
 
           Square sq = make_square(file, rank);
           Piece piece = piece_on(sq);
 
-          if (piece == PIECE_NONE && square_color(sq) == DARK)
+          if (piece == PIECE_NONE && color_of(sq) == DARK)
               piece = PIECE_NONE_DARK_SQ;
 
           char c = (color_of(piece_on(sq)) == BLACK ? '=' : ' ');
               piece = PIECE_NONE_DARK_SQ;
 
           char c = (color_of(piece_on(sq)) == BLACK ? '=' : ' ');