X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fmove.cpp;h=0a620781ce1be0a85eb9929bbf60691b504a7f42;hp=4a0a43b30fca539da6fb0d7db0e065904d8ab020;hb=b21a5e2f0638a55daeaa98ba95afc6c016ea0b6e;hpb=735cac5d53f502df9353887988d985eff62a9b34 diff --git a/src/move.cpp b/src/move.cpp index 4a0a43b3..0a620781 100644 --- a/src/move.cpp +++ b/src/move.cpp @@ -59,7 +59,7 @@ const string move_to_uci(Move m, bool chess960) { return from == SQ_E1 ? "e1c1" : "e8c8"; if (move_is_promotion(m)) - promotion = char(tolower(piece_type_to_char(move_promotion_piece(m)))); + promotion = char(tolower(piece_type_to_char(promotion_piece_type(m)))); return square_to_string(from) + square_to_string(to) + promotion; } @@ -157,7 +157,7 @@ const string move_to_san(Position& pos, Move m) { if (move_is_promotion(m)) { san += '='; - san += piece_type_to_char(move_promotion_piece(m)); + san += piece_type_to_char(promotion_piece_type(m)); } }