]> git.sesse.net Git - stockfish/commitdiff
Do not fill value if we have no search info.
authorSteinar H. Gunderson <sgunderson@bigfoot.com>
Mon, 21 Mar 2016 23:23:44 +0000 (00:23 +0100)
committerSteinar H. Gunderson <sgunderson@bigfoot.com>
Wed, 26 Dec 2018 09:43:37 +0000 (10:43 +0100)
src/main.cpp

index 39c5ce58f3b507233ad590deae37ab0c97ca2146..d20d8df4b3dc8af0eb5fe90d7f2c63b900b9dac2 100644 (file)
@@ -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.