X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fevaluate.cpp;h=520c33e0da3609e51996c504f538af35880bace1;hp=db5e3fc25e79a39a282e1f05098e352b40944c6a;hb=e1919384a23fe728422f995369161efa192380db;hpb=699f700162f410519e5510c667aebc9940d4e91e;ds=inline diff --git a/src/evaluate.cpp b/src/evaluate.cpp index db5e3fc2..520c33e0 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 = pos.this_thread().materialTable.probe(pos); + ei.mi = Threads.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 = pos.this_thread().pawnTable.probe(pos); + ei.pi = Threads.this_thread()->pawnTable.probe(pos); score += ei.pi->pawns_value(); // Initialize attack and king safety bitboards