From f7e14f8032cd390610d8a0a7d7e5cbcb6743bc65 Mon Sep 17 00:00:00 2001 From: "Steinar H. Gunderson" Date: Tue, 22 Mar 2016 00:23:44 +0100 Subject: [PATCH] Do not fill value if we have no search info. --- src/main.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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. -- 2.39.2