Fix a missing assignment in previous commit

While reformatting the patch, I got wrong a statement and converted it badly.
This commit is contained in:
Marco Costalba
2019-04-06 02:03:15 +02:00
committed by GitHub
parent 1982fe25f8
commit fdd799bc16

View File

@@ -468,8 +468,10 @@ void Thread::search() {
// Use part of the gained time from a previous stable move for the current move // Use part of the gained time from a previous stable move for the current move
for (Thread* th : Threads) for (Thread* th : Threads)
{
totBestMoveChanges += th->bestMoveChanges; totBestMoveChanges += th->bestMoveChanges;
th->bestMoveChanges = 0;
}
double bestMoveInstability = 1 + totBestMoveChanges / Threads.size(); double bestMoveInstability = 1 + totBestMoveChanges / Threads.size();
// Stop the search if we have only one legal move, or if available time elapsed // Stop the search if we have only one legal move, or if available time elapsed