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=0716768e131d9876ba20d93147d1a1becd0795a4;hp=74b11e3868ac68e912d14030305ee01e222e8e15 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.