From 32fe9f84d050e0fcc12d38ae9c9ac2fd6014cc12 Mon Sep 17 00:00:00 2001 From: H.G. Muller Date: Thu, 22 Sep 2011 17:14:34 +0200 Subject: [PATCH] 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. --- backend.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) 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); -- 1.7.0.4