X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;ds=sidebyside;f=src%2Fevaluate.cpp;h=515405ca5fe935b16d0eef5fedd103910e9b4968;hb=b1f57e92cea7bd36126ef8c26928d8991b74baef;hp=4d47b7e6df64a681bdc1b979626a04d942643d32;hpb=0439a79566d03065317b2025b9b479b9ae9f2d65;p=stockfish diff --git a/src/evaluate.cpp b/src/evaluate.cpp index 4d47b7e6..515405ca 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 = 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 = this_thread->pawnTable.probe(pos); score += ei.pi->pawns_value(); // Initialize attack and king safety bitboards