X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fmove.cpp;h=065fd230784927051ee952790aaf1109370d0e91;hp=e7b9257dc6d66c4175f059e9264c46c77987a5b1;hb=1a7047f544b29cc16c970df1379752f0541ed90f;hpb=27619830d428693b4871ce58770705b30ba84c99 diff --git a/src/move.cpp b/src/move.cpp index e7b9257d..065fd230 100644 --- a/src/move.cpp +++ b/src/move.cpp @@ -129,8 +129,8 @@ const std::string move_to_string(Move move) { return (from == SQ_E1 ? "e1c1" : "e8c8"); } str = square_to_string(from) + square_to_string(to); - if (move_promotion(move)) - str += piece_type_to_char(move_promotion(move), false); + if (move_is_promotion(move)) + str += piece_type_to_char(move_promotion_piece(move), false); } return str; }