From 0c775fae4b758844f9446f125a3e6eed964ecaf0 Mon Sep 17 00:00:00 2001 From: Marco Costalba Date: Tue, 1 Mar 2011 13:32:19 +0100 Subject: [PATCH] Be sure to read options before to call trace_evaluate() Otherwise in case we change an option with setoption and then ask for "eval" command the evaluation is not updated. Spotted by Justin Blanchard. No functional change. Signed-off-by: Marco Costalba --- src/uci.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/uci.cpp b/src/uci.cpp index bc412012..cec9ccf1 100644 --- a/src/uci.cpp +++ b/src/uci.cpp @@ -97,7 +97,10 @@ bool execute_uci_command(const string& cmd) { pos.print(); else if (token == "eval") + { + read_evaluation_uci_options(pos.side_to_move()); cout << trace_evaluate(pos) << endl; + } else if (token == "key") cout << "key: " << hex << pos.get_key() -- 2.39.2