From: H.G. Muller Date: Mon, 26 Sep 2011 13:58:07 +0000 (+0200) Subject: Fix resetting -fSAN on engine change X-Git-Url: http://winboard.nl/cgi-bin?a=commitdiff_plain;h=84af44b79b8d6ce50f809cac441d21157be5a32b;p=xboard.git Fix resetting -fSAN on engine change 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. --- diff --git a/backend.c b/backend.c index 71aa6a5..9b81943 100644 --- 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);