Fix clearing of ponder move
authorH.G. Muller <h.g.muller@hccnet.nl>
Sat, 1 Jun 2013 20:58:32 +0000 (22:58 +0200)
committerH.G. Muller <h.g.muller@hccnet.nl>
Mon, 21 Oct 2013 08:40:25 +0000 (10:40 +0200)
hachu.c

diff --git a/hachu.c b/hachu.c
index aa37ab3..9a8c518 100644 (file)
--- a/hachu.c
+++ b/hachu.c
@@ -2454,6 +2454,7 @@ pboard(board);
           }\r
           continue;\r
         }\r
+        ponderMove = INVALID; // the following commands change the position, invalidating ponder move\r
         listEnd = 0;\r
         if(!strcmp(command, "new"))     {\r
           engineSide = BLACK; Init(V_CHESS); stm = Setup2(NULL); maxDepth = MAXPLY; randomize = OFF; curVarNr = comp = 0;\r