mirror of
https://github.com/sockspls/badfish
synced 2025-04-30 16:53: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
|
||||
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
|
||||
|
|
Loading…
Add table
Reference in a new issue