]> git.sesse.net Git - stockfish/commitdiff
Fix a missing assignment in previous commit
authorMarco Costalba <mcostalba@users.noreply.github.com>
Sat, 6 Apr 2019 00:03:15 +0000 (02:03 +0200)
committerGitHub <noreply@github.com>
Sat, 6 Apr 2019 00:03:15 +0000 (02:03 +0200)
While reformatting the patch, I got wrong a statement and converted it badly.

src/search.cpp

index 30f280728e274055d49771ceb2a413d5b91aa9dd..36c8a5eb1a7dc9638f928ea1ee84ac2d123872ee 100644 (file)
@@ -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