X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fmaterial.cpp;h=e22942128f4a98974f856ecefb836c15b091ff8a;hp=094a13df9156fb2910a4364716a9f67c76bc1d49;hb=1c7a727795b82de75ed83e9648a94134ef75576a;hpb=42b48b08e81b55e385e55b3074b7c59d81809a45 diff --git a/src/material.cpp b/src/material.cpp index 094a13df..e2294212 100644 --- a/src/material.cpp +++ b/src/material.cpp @@ -139,7 +139,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 (pos.this_thread()->endgames.probe(key, e->evaluationFunction)) + if ((e->evaluationFunction = pos.this_thread()->endgames.probe(key)) != nullptr) return e; if (is_KXK(pos)) @@ -158,7 +158,7 @@ Entry* probe(const Position& pos) { // configuration. Is there a suitable specialized scaling function? EndgameBase* sf; - if (pos.this_thread()->endgames.probe(key, sf)) + if ((sf = pos.this_thread()->endgames.probe(key)) != nullptr) { e->scalingFunction[sf->strong_side()] = sf; // Only strong color assigned return e;