X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;ds=sidebyside;f=src%2Fpiece.cpp;h=4f2fde768000d0a3d8b7cc1a8768ab75a8a96633;hb=13bd0cff0d1f7977ee68cf995d2b5f84159974ba;hp=b287994975cbd5360d8f531758fa82931e4cb96b;hpb=a4a0ffce711962c0b04b35998c3c06491be373bf;p=stockfish diff --git a/src/piece.cpp b/src/piece.cpp index b2879949..4f2fde76 100644 --- a/src/piece.cpp +++ b/src/piece.cpp @@ -45,5 +45,5 @@ PieceType piece_type_from_char(char c) { size_t idx = PieceChars.find(c); - return idx != string::npos ? PieceType(idx % 7) : NO_PIECE_TYPE; + return idx != string::npos ? PieceType(idx % 7) : PIECE_TYPE_NONE; }