]> git.sesse.net Git - stockfish/commitdiff
Use alpha instead of beta-1
authorMarco Costalba <mcostalba@gmail.com>
Sun, 9 Jun 2013 09:52:39 +0000 (11:52 +0200)
committerMarco Costalba <mcostalba@gmail.com>
Sun, 9 Jun 2013 09:52:39 +0000 (11:52 +0200)
It is more directly related to a fail-low.

No functional change.

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;
         }
     }