Fix clearing of ponder move
[hachu.git] / 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