]> git.sesse.net Git - stockfish/blobdiff - src/search.cpp
Try bad captures before non-captures
[stockfish] / src / search.cpp
index 4fd1c03d0a8830ba5411e991a13481e3336a61e5..c369bac3a98d0f64c2336f3cab725e380bc384ed 100644 (file)
@@ -1440,7 +1440,7 @@ namespace {
     // Loop through all legal moves until no moves remain or a beta cutoff occurs
 
     // Initialize a MovePicker object for the current position
     // Loop through all legal moves until no moves remain or a beta cutoff occurs
 
     // Initialize a MovePicker object for the current position
-    MovePicker mp = MovePicker(pos, ttMove, depth, H, &ss[ply]);
+    MovePicker mp = MovePicker(pos, ttMove, depth, H, &ss[ply], beta);
     CheckInfo ci(pos);
 
     while (   bestValue < beta
     CheckInfo ci(pos);
 
     while (   bestValue < beta