From fdd799bc16bbb39216cf5e7ef12d302d1c201ef1 Mon Sep 17 00:00:00 2001 From: Marco Costalba Date: Sat, 6 Apr 2019 02:03:15 +0200 Subject: [PATCH] Fix a missing assignment in previous commit While reformatting the patch, I got wrong a statement and converted it badly. --- src/search.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/search.cpp b/src/search.cpp index 30f28072..36c8a5eb 100644 --- a/src/search.cpp +++ b/src/search.cpp @@ -468,8 +468,10 @@ void Thread::search() { // Use part of the gained time from a previous stable move for the current move for (Thread* th : Threads) + { totBestMoveChanges += th->bestMoveChanges; - + th->bestMoveChanges = 0; + } double bestMoveInstability = 1 + totBestMoveChanges / Threads.size(); // Stop the search if we have only one legal move, or if available time elapsed -- 2.39.2