]> git.sesse.net Git - stockfish/blobdiff - src/search.cpp
Replace 100 with PLY_MAX in ok_to_use_TT
[stockfish] / src / search.cpp
index 0cbe09e007a1fa3e1c49337fc2919fcca8d909b5..dac9493351cd183d6c3340ff92079c6357880845 100644 (file)
@@ -2523,8 +2523,8 @@ namespace {
     Value v = value_from_tt(tte->value(), ply);
 
     return   (   tte->depth() >= depth
-              || v >= Max(value_mate_in(100), beta)
-              || v < Min(value_mated_in(100), beta))
+              || v >= Max(value_mate_in(PLY_MAX), beta)
+              || v < Min(value_mated_in(PLY_MAX), beta))
 
           && (   (is_lower_bound(tte->type()) && v >= beta)
               || (is_upper_bound(tte->type()) && v < beta));