]> git.sesse.net Git - stockfish/blobdiff - src/move.cpp
Retire Position::type_of_piece_on()
[stockfish] / src / move.cpp
index 0a620781ce1be0a85eb9929bbf60691b504a7f42..656ef40005f5d2f3e0e682fdde97487f45fef4a4 100644 (file)
@@ -95,7 +95,7 @@ const string move_to_san(Position& pos, Move m) {
   bool ambiguousMove, ambiguousFile, ambiguousRank;
   Square sq, from = move_from(m);
   Square to = move_to(m);
-  PieceType pt = pos.type_of_piece_on(from);
+  PieceType pt = type_of_piece(pos.piece_on(from));
   string san;
 
   if (m == MOVE_NONE)