]> git.sesse.net Git - stockfish/blobdiff - src/search.cpp
Use alpha instead of beta-1
[stockfish] / src / search.cpp
index 1268445555a608c87b55c0d4e307f6f4172814ab..00c871fd4acb8774352a67643fffeb8f4437ba96 100644 (file)
@@ -716,7 +716,7 @@ namespace {
                 && (ss-1)->reduction
                 && threatMove != MOVE_NONE
                 && allows(pos, (ss-1)->currentMove, threatMove))
-                return beta - 1;
+                return alpha;
         }
     }