1
0
Fork 0
mirror of https://github.com/sockspls/badfish synced 2025-04-30 00:33:09 +00:00

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
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View 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