From: H.G. Muller Date: Thu, 22 Sep 2011 15:14:34 +0000 (+0200) Subject: Clear fSAN option before new engine load X-Git-Url: http://winboard.nl/cgi-bin?a=commitdiff_plain;h=32fe9f84d050e0fcc12d38ae9c9ac2fd6014cc12;p=xboard.git Clear fSAN option before new engine load This to prevent the new engine will inherit it from the previous one. As the command-line options an only set it, this has to be done by explicit assignment. --- diff --git a/backend.c b/backend.c index c259cc5..43e50eb 100644 --- a/backend.c +++ b/backend.c @@ -888,7 +888,7 @@ Load(ChessProgramState *cps, int i) if(engineLine && engineLine[0]) { // an engine was selected from the combo box snprintf(buf, MSG_SIZ, "-fcp %s", engineLine); SwapEngines(i); // kludge to parse -f* / -first* like it is -s* / -second* - ParseArgsFromString(resetOptions); appData.fenOverride[0] = NULL; + ParseArgsFromString(resetOptions); appData.fenOverride[0] = NULL; appData.pvSAN[0] = FALSE; ParseArgsFromString(buf); SwapEngines(i); ReplaceEngine(cps, i);