From 1536e31065df90060b9053acdbc21b4319da7de9 Mon Sep 17 00:00:00 2001 From: No name Date: Fri, 17 Jul 2020 10:25:23 +0300 Subject: [PATCH] Load the parameter set on an `isready' as well Unbreaks Scid vs. PC, which doesn't send `ucinewgame'. --- src/uci.cpp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/uci.cpp b/src/uci.cpp index 6d86ebca..c775f333 100644 --- a/src/uci.cpp +++ b/src/uci.cpp @@ -383,8 +383,12 @@ void UCI::loop(int argc, char* argv[]) { #endif Search::clear(); } - else if (token == "isready") sync_cout << "readyok" << sync_endl; - + else if (token == "isready") { +#if defined(EVAL_NNUE) + init_nnue(true); +#endif + sync_cout << "readyok" << sync_endl; + } // Additional custom non-UCI commands, mainly for debugging. // Do not use these commands during a search! else if (token == "flip") pos.flip();