X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fpawns.cpp;h=52bc9f88eea5eb031931cfe1aa17dce81fde575e;hp=f8918cfeaa0e79683adcf344d51b37fee1af9d5f;hb=ed04c010eb4a569532f322f5030d468380b3ab57;hpb=30ca6935a526a416ea4bef9263d6b17d123ace24 diff --git a/src/pawns.cpp b/src/pawns.cpp index f8918cfe..52bc9f88 100644 --- a/src/pawns.cpp +++ b/src/pawns.cpp @@ -79,8 +79,6 @@ namespace { PawnInfo* PawnInfoTable::get_pawn_info(const Position& pos) const { - assert(pos.is_ok()); - Key key = pos.get_pawn_key(); PawnInfo* pi = probe(key); @@ -134,8 +132,8 @@ Score PawnInfoTable::evaluate_pawns(const Position& pos, Bitboard ourPawns, { assert(pos.piece_on(s) == make_piece(Us, PAWN)); - f = square_file(s); - r = square_rank(s); + f = file_of(s); + r = rank_of(s); // This file cannot be half open pi->halfOpenFiles[Us] &= ~(1 << f);