Do not fill value if we have no search info.
[stockfish] / 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.