Skip to content

Commit

Permalink
Fix a missing assignment in previous commit
Browse files Browse the repository at this point in the history
While reformatting the patch, I got wrong a statement and converted it badly.
  • Loading branch information
mcostalba committed Apr 6, 2019
1 parent 1982fe2 commit fdd799b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/search.cpp
Expand Up @@ -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
Expand Down

0 comments on commit fdd799b

Please sign in to comment.