X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fmaterial.cpp;h=3a05f3faf6b374aee5bd72ea221dd12fce3281b4;hp=ee5d4bceabdaa5b056f0f712fd4cf85856779f57;hb=a9cca5c953e6ccec865102b13b47b9f45d98a0fc;hpb=82ad9ce9cfb0eff33f1d781f329f7c5dc0b277eb diff --git a/src/material.cpp b/src/material.cpp index ee5d4bce..3a05f3fa 100644 --- a/src/material.cpp +++ b/src/material.cpp @@ -137,7 +137,7 @@ Entry* probe(const Position& pos) { // Let's look if we have a specialized evaluation function for this particular // material configuration. Firstly we look for a fixed configuration one, then // for a generic one if the previous search failed. - if ((e->evaluationFunction = pos.this_thread()->endgames.probe(key)) != nullptr) + if ((e->evaluationFunction = Endgames::probe(key)) != nullptr) return e; for (Color c = WHITE; c <= BLACK; ++c) @@ -149,7 +149,7 @@ Entry* probe(const Position& pos) { // OK, we didn't find any special evaluation function for the current material // configuration. Is there a suitable specialized scaling function? - const auto* sf = pos.this_thread()->endgames.probe(key); + const auto* sf = Endgames::probe(key); if (sf) {