From 713604a3d480cb894e0acb58086ba2ffa6b23e4a Mon Sep 17 00:00:00 2001 From: Marco Costalba Date: Wed, 7 Oct 2015 08:57:25 +0200 Subject: [PATCH] Fix easy move bench: 8397672 --- src/search.cpp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/search.cpp b/src/search.cpp index 61796406..64533edc 100644 --- a/src/search.cpp +++ b/src/search.cpp @@ -345,8 +345,12 @@ void Thread::id_loop() { Value bestValue, alpha, beta, delta; - Move easyMove = EasyMove.get(pos.key()); - EasyMove.clear(); + Move easyMove = MOVE_NONE; + if (this == Threads.main()) + { + easyMove = EasyMove.get(pos.key()); + EasyMove.clear(); + } Stack *ss = stack+2; // To allow referencing (ss-2) and (ss+2) std::memset(stack, 0, 5 * sizeof(Stack));