X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=src%2Fposition.cpp;h=2d1e476391c19db02f1f26cdcc5c25a7a45ac3c0;hb=61c03b9d22de0c1ccf0c60af4e223775d4b3f7cc;hp=efac40b328a647414f64bb661da106fe023c59ea;hpb=201e8d5f87a2bbd2d199b744cf8e92213c1e4bc4;p=stockfish diff --git a/src/position.cpp b/src/position.cpp index efac40b3..2d1e4763 100644 --- a/src/position.cpp +++ b/src/position.cpp @@ -101,20 +101,23 @@ namespace { operator[]('B') = WB; operator[]('b') = BB; operator[]('N') = WN; operator[]('n') = BN; operator[]('P') = WP; operator[]('p') = BP; - operator[](' ') = PIECE_NONE; operator[]('.') = PIECE_NONE_DARK_SQ; + operator[](' ') = PIECE_NONE; + operator[]('.') = PIECE_NONE_DARK_SQ; } char from_piece(Piece p) const { - std::map::const_iterator it; - for (it = begin(); it != end(); ++it) - if (it->second == p) - return it->first; + std::map::const_iterator it; + for (it = begin(); it != end(); ++it) + if (it->second == p) + return it->first; - assert(false); - return 0; + assert(false); + return 0; } - } pieceLetters; + }; + + PieceLetters pieceLetters; }