X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fevaluate.cpp;h=649842dc87384f568b390e497649f5c62fba6195;hp=e75251f472a8b532e91226b78a76ea3f8cc2fd19;hb=09d01ee9dc16f20962d5f5ffcb61ade56d4fa579;hpb=fecefbb99cb0147f37d6895765a315f34c935786 diff --git a/src/evaluate.cpp b/src/evaluate.cpp index e75251f4..649842dc 100644 --- a/src/evaluate.cpp +++ b/src/evaluate.cpp @@ -303,7 +303,7 @@ Value do_evaluate(const Position& pos, Value& margin) { margins[WHITE] = margins[BLACK] = VALUE_ZERO; // Probe the material hash table - MaterialInfo* mi = ThreadsMgr[pos.thread()].materialTable.get_material_info(pos); + MaterialInfo* mi = Threads[pos.thread()].materialTable.get_material_info(pos); bonus += mi->material_value(); // If we have a specialized evaluation function for the current material @@ -315,7 +315,7 @@ Value do_evaluate(const Position& pos, Value& margin) { } // Probe the pawn hash table - ei.pi = ThreadsMgr[pos.thread()].pawnTable.get_pawn_info(pos); + ei.pi = Threads[pos.thread()].pawnTable.get_pawn_info(pos); bonus += apply_weight(ei.pi->pawns_value(), Weights[PawnStructure]); // Initialize attack and king safety bitboards