From: Steinar H. Gunderson Date: Mon, 21 Mar 2016 23:23:44 +0000 (+0100) Subject: Do not fill value if we have no search info. X-Git-Url: https://git.sesse.net/?p=stockfish;a=commitdiff_plain;h=f7e14f8032cd390610d8a0a7d7e5cbcb6743bc65;ds=inline Do not fill value if we have no search info. --- diff --git a/src/main.cpp b/src/main.cpp index 39c5ce58..d20d8df4 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -108,7 +108,9 @@ public: response->set_depth(entry->depth()); FillValue(eval, response->mutable_eval()); - FillValue(value, response->mutable_value()); + if (entry->depth() > DEPTH_NONE) { + FillValue(value, response->mutable_value()); + } response->set_bound(HashProbeLine::ValueBound(bound)); // Follow the PV until we hit an illegal move.