From 9db45c2c66041e7b43588ece4b111c6bc5e758c3 Mon Sep 17 00:00:00 2001 From: H.G.Muller Date: Mon, 4 Apr 2016 17:46:34 +0200 Subject: [PATCH] Fix setting hash-table size in UCCI The keyword 'name' in "setoption name Hash ..." was hard-coded, but in UCCI it needs to be left out. So the variable nameWord is now used instead. --- UCI2WB.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/UCI2WB.c b/UCI2WB.c index c69971f..fb80b68 100644 --- a/UCI2WB.c +++ b/UCI2WB.c @@ -400,7 +400,7 @@ GUI2Engine() if(!strcmp(command, "new")) { computer = BLACK; moveNr = 0; depth = -1; move[0][0] = 0; stm = WHITE; strcpy(iniPos, "position startpos"); frc &= ~1; - if(memory != oldMem && hasHash) fprintf(toE, "setoption name %s %s%d\n", hashOpt, valueWord, memory); + if(memory != oldMem && hasHash) fprintf(toE, "setoption %s%s %s%d\n", nameWord, hashOpt, valueWord, memory); oldMem = memory; // we can set other options here if(sc == 'x') { if(newGame) fprintf(toE, "setoption newgame\n"); } else // optional in UCCI -- 1.7.0.4