]> git.sesse.net Git - stockfish/blobdiff - src/move.cpp
Assume input FEN string is correct in from_fen()
[stockfish] / src / move.cpp
index 0a620781ce1be0a85eb9929bbf60691b504a7f42..3c906b2a7d06b9fda1559e597a31ed9baf5c6bc6 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 = piece_type(pos.piece_on(from));
   string san;
 
   if (m == MOVE_NONE)