X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fevaluate.cpp;h=8d9d01a71a7eff742bed41cce7bdf28c4d3ed391;hp=4765094a2c4c237d95afee9459e743bc60cd4bcc;hb=158014b39d69eaaf791d4913b98ffde5c4d7a874;hpb=231f62baf7b6d9cee18bf7e85bed0fc9b78eed73 diff --git a/src/evaluate.cpp b/src/evaluate.cpp index 4765094a..8d9d01a7 100644 --- a/src/evaluate.cpp +++ b/src/evaluate.cpp @@ -37,7 +37,7 @@ namespace { // Pointers to material and pawn hash table entries Material::Entry* mi; - PawnEntry* pi; + Pawns::Entry* pi; // attackedBy[color][piece type] is a bitboard representing all squares // attacked by a given color and piece type, attackedBy[color][0] contains @@ -405,7 +405,7 @@ Value do_evaluate(const Position& pos, Value& margin) { } // Probe the pawn hash table - ei.pi = pos.this_thread()->pawnTable.probe(pos); + ei.pi = Pawns::probe(pos, th->pawnsTable); score += ei.pi->pawns_value(); // Initialize attack and king safety bitboards