From: H.G.Muller Date: Mon, 4 Apr 2016 15:46:34 +0000 (+0200) Subject: Fix setting hash-table size in UCCI X-Git-Tag: v2.3~30 X-Git-Url: http://winboard.nl/cgi-bin?p=uci2wb.git;a=commitdiff_plain;h=9db45c2c66041e7b43588ece4b111c6bc5e758c3 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. --- 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