Fix eval sign bug in (not-yet-used) null move
authorH.G. Muller <h.g.muller@hccnet.nl>
Fri, 18 Jan 2013 16:08:44 +0000 (17:08 +0100)
committerH.G. Muller <h.g.muller@hccnet.nl>
Fri, 18 Jan 2013 16:08:44 +0000 (17:08 +0100)
hachu.c

diff --git a/hachu.c b/hachu.c
index d28e99e..87b227f 100644 (file)
--- a/hachu.c
+++ b/hachu.c
@@ -1541,7 +1541,7 @@ if(flag && depth>= 0) printf("phase=%d: first/curr/last = %d / %d / %d\n", phase
 #if 0\r
            if(curEval >= beta) {\r
              stm ^= WHITE;\r
-             score = -Search(-beta, -iterAlpha, difEval, depth-3, promoSuppress & SQUARE, ABSENT);\r
+             score = -Search(-beta, -iterAlpha, -difEval, depth-3, promoSuppress & SQUARE, ABSENT);\r
              stm ^= WHITE;\r
              if(score >= beta) { msp = oldMSP; retDep += 3; return score + (score < curEval); }\r
            }\r