From f25baeff5c938adec15bfd8c54094dddc112802d Mon Sep 17 00:00:00 2001 From: H.G.Muller Date: Mon, 30 Oct 2017 22:54:12 +0100 Subject: [PATCH] Fix installing with chosen protocol The tryNr variable should be set by the Load Engine dialog even when there is no auto-detection, to make the engine be added to the list. --- backend.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/backend.c b/backend.c index f8ad17c..fd955fe 100644 --- a/backend.c +++ b/backend.c @@ -1060,6 +1060,7 @@ Load (ChessProgramState *cps, int i) } if(jar) { snprintf(buf3, MSG_SIZ, "java -jar %s", p); p = buf3; } ASSIGN(appData.chessProgram[i], p); + tryNr = 3; // requests adding to list without auto-detect if(isUCI == 3) tryNr = 1, isUCI = 0; // auto-detect appData.isUCI[i] = isUCI; appData.protocolVersion[i] = v1 ? 1 : PROTOVER; -- 1.7.0.4