From 961cdf71623d9a2821f4c584c2018c4dd7e7e918 Mon Sep 17 00:00:00 2001 From: lavox <31734861+lavox@users.noreply.github.com> Date: Sun, 22 Oct 2017 22:07:46 +0900 Subject: [PATCH] bug correction: book import command sets book depth incorrectly --- src/book.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/book.c b/src/book.c index d3ce3873..0e36ee1d 100644 --- a/src/book.c +++ b/src/book.c @@ -1524,12 +1524,12 @@ void book_import(Book *book, const char *file) } bprint("importing book from %s... %d positions", file, book->n_nodes); - book->options.n_empties = 0; + book->options.n_empties = 60; book->options.level = 0; foreach_position(p, a, book) { n_empties = board_count_empties(p->board); if (p->level > book->options.level) book->options.level = p->level; - if (n_empties > book->options.n_empties) book->options.n_empties = n_empties; + if (n_empties < book->options.n_empties) book->options.n_empties = n_empties; } random_seed(book->random, real_clock());