X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fevaluate.cpp;h=db5e3fc25e79a39a282e1f05098e352b40944c6a;hp=4d47b7e6df64a681bdc1b979626a04d942643d32;hb=673bc5526fa3d352f823ad144fb521b5dc98f45c;hpb=0439a79566d03065317b2025b9b479b9ae9f2d65 diff --git a/src/evaluate.cpp b/src/evaluate.cpp index 4d47b7e6..db5e3fc2 100644 --- a/src/evaluate.cpp +++ b/src/evaluate.cpp @@ -371,7 +371,7 @@ Value do_evaluate(const Position& pos, Value& margin) { margins[WHITE] = margins[BLACK] = VALUE_ZERO; // Probe the material hash table - ei.mi = Threads[pos.this_thread()].materialTable.probe(pos); + ei.mi = pos.this_thread().materialTable.probe(pos); score += ei.mi->material_value(); // If we have a specialized evaluation function for the current material @@ -383,7 +383,7 @@ Value do_evaluate(const Position& pos, Value& margin) { } // Probe the pawn hash table - ei.pi = Threads[pos.this_thread()].pawnTable.probe(pos); + ei.pi = pos.this_thread().pawnTable.probe(pos); score += ei.pi->pawns_value(); // Initialize attack and king safety bitboards