X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fthread.cpp;h=3f3f26cd63f4e6e6f354a1d26ff4fc25febc4640;hp=d095aefeb6a6f875746a67ab68d782e32d031e28;hb=4bc11984fc5a148ee8f1b55d6ac47c4a397cc8b8;hpb=e385f194e970f0675bd4c3509bca4a6c81b6df5e diff --git a/src/thread.cpp b/src/thread.cpp index d095aefe..3f3f26cd 100644 --- a/src/thread.cpp +++ b/src/thread.cpp @@ -58,6 +58,7 @@ void Thread::clear() { counterMoves.fill(MOVE_NONE); mainHistory.fill(0); + captureHistory.fill(0); for (auto& to : contHistory) for (auto& h : to) @@ -111,7 +112,7 @@ void Thread::idle_loop() { /// ThreadPool::init() creates and launches the threads that will go -/// immediately to sleep in idle_loop. We cannot use the c'tor because +/// immediately to sleep in idle_loop. We cannot use the constructor because /// Threads is a static object and we need a fully initialized engine at /// this point due to allocation of Endgames in the Thread constructor.