mirror of
https://github.com/sockspls/badfish
synced 2025-04-30 08:43:09 +00:00
Reset Thread::maxPly before a new search
No functional change. Signed-off-by: Marco Costalba <mcostalba@gmail.com>
This commit is contained in:
parent
58c2fe391d
commit
e4efc8b741
1 changed files with 2 additions and 1 deletions
|
@ -227,9 +227,10 @@ void ThreadsManager::read_uci_options() {
|
|||
|
||||
void ThreadsManager::wake_up() {
|
||||
|
||||
for (int i = 1; i < size(); i++) // Main thread is already running
|
||||
for (int i = 0; i < size(); i++)
|
||||
{
|
||||
threads[i]->do_sleep = false;
|
||||
threads[i]->maxPly = 0;
|
||||
|
||||
if (!useSleepingThreads)
|
||||
threads[i]->wake_up();
|
||||
|
|
Loading…
Add table
Reference in a new issue