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>
Sat, 24 Nov 2018 10:17:41 +0000 (11:17 +0100)
src/main.cpp

index 39c5ce5..d20d8df 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.