Fix resetting -fSAN on engine change
authorH.G. Muller <h.g.muller@hccnet.nl>
Mon, 26 Sep 2011 13:58:07 +0000 (15:58 +0200)
committerH.G. Muller <h.g.muller@hccnet.nl>
Mon, 3 Oct 2011 07:19:20 +0000 (09:19 +0200)
There were two places for loading another engine, Load (from menu) and
SetPlayer (in tourneys), and the previous patch for this missed the
second one.

backend.c

index 71aa6a5..9b81943 100644 (file)
--- a/backend.c
+++ b/backend.c
@@ -9931,7 +9931,7 @@ SetPlayer(int player)
     for(i=1; command[i]; i++) if(!strcmp(mnemonic[i], engineName)) break;
     if(mnemonic[i]) {
        snprintf(buf, MSG_SIZ, "-fcp %s", command[i]);
-       ParseArgsFromString(resetOptions); appData.fenOverride[0] = NULL;
+       ParseArgsFromString(resetOptions); appData.fenOverride[0] = NULL; appData.pvSAN[0] = FALSE;
        ParseArgsFromString(buf);
     }
     free(engineName);