X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fsan.cpp;fp=src%2Fsan.cpp;h=190121a1f7245a302f17db4edd67758d2d6a0e1e;hp=545fae8fd5bd6a96ec37acd7786aca70a600ddd7;hb=e6376d9b8daae0aa0dcda618ec6330bda2dcfaf7;hpb=2170fa18bf59f977138f9de2389cbfdd85d84415 diff --git a/src/san.cpp b/src/san.cpp index 545fae8f..190121a1 100644 --- a/src/san.cpp +++ b/src/san.cpp @@ -164,7 +164,7 @@ Move move_from_san(const Position& pos, const string& movestr) { // Normal moves. We use a simple FSM to parse the san string. enum { START, TO_FILE, TO_RANK, PROMOTION_OR_CHECK, PROMOTION, CHECK, END }; static const string pieceLetters = "KQRBN"; - PieceType pt = NO_PIECE_TYPE, promotion = NO_PIECE_TYPE; + PieceType pt = PIECE_TYPE_NONE, promotion = PIECE_TYPE_NONE; File fromFile = FILE_NONE, toFile = FILE_NONE; Rank fromRank = RANK_NONE, toRank = RANK_NONE; Square to;