Fix some uninitialized variables with gensfen

fixes valgrind errors as seen with:

```
setoption name Use NNUE value true
isready
gensfen depth 6 loop 10 use_draw_in_training_data_generation 1 eval_limit 32000 output_file_name training_data/training_data.bin use_raw_nnue_eval 0
quit
```

the latter script now runs without valgrind errors on linux
This commit is contained in:
Joost VandeVondele
2020-09-06 20:38:29 +02:00
committed by nodchip
parent e9e6e47a93
commit 3bf418e63f
2 changed files with 4 additions and 0 deletions

View File

@@ -2035,6 +2035,8 @@ namespace Learner
th->completedDepth = 0;
th->selDepth = 0;
th->rootDepth = 0;
th->nmpMinPly = th->bestMoveChanges = 0;
th->ttHitAverage = TtHitAverageWindow * TtHitAverageResolution / 2;
// Zero initialization of the number of search nodes
th->nodes = 0;