diff --git a/src/search.cpp b/src/search.cpp index b4c08373..39ed624c 100644 --- a/src/search.cpp +++ b/src/search.cpp @@ -1543,7 +1543,11 @@ namespace { staticValue = tte->value(); } else + { staticValue = evaluate(pos, ei, threadID); + if (!value_is_mate(staticValue + Value(ply))) + staticValue += Value(ply); + } if (ply == PLY_MAX - 1) return evaluate(pos, ei, threadID);