mirror of
https://github.com/sockspls/badfish
synced 2025-05-01 01:03: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:
parent
1982fe25f8
commit
fdd799bc16
1 changed files with 3 additions and 1 deletions
|
@ -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
|
||||||
|
|
Loading…
Add table
Reference in a new issue