From f14e25f325b001d10d025704ff76052b043dfb55 Mon Sep 17 00:00:00 2001 From: eug-vs Date: Sun, 27 Aug 2023 00:55:35 +0300 Subject: fix: update TTable after pondering --- src/grossmeister/UCI.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/grossmeister') diff --git a/src/grossmeister/UCI.rs b/src/grossmeister/UCI.rs index 1bd5f92..2351b2f 100644 --- a/src/grossmeister/UCI.rs +++ b/src/grossmeister/UCI.rs @@ -99,8 +99,9 @@ impl Grossmeister { // Join to the current pondering search if let Some(hand) = search_handle.take() { - hand.join().unwrap(); + let better_self = hand.join().unwrap(); halt_scheduled.store(false, Ordering::SeqCst); // Cancel scheduled halting + self.transposition_table = better_self.transposition_table; } else { panic!("Search thread not found!"); } -- cgit v1.2.3