X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;ds=sidebyside;f=src%2Fthread.cpp;h=ed7c5f336fe2c2efb1ba44874b97f8f23bd2fc73;hb=9fff27220917d706988185cbd847e3f355a7fe09;hp=f9809275ec2485a49ee737f5d00a4a78065ffb17;hpb=a0486ecb40513db8141fa27c026f64771b8ebb55;p=stockfish diff --git a/src/thread.cpp b/src/thread.cpp index f9809275..ed7c5f33 100644 --- a/src/thread.cpp +++ b/src/thread.cpp @@ -61,11 +61,11 @@ void Thread::clear() { mainHistory.fill(0); captureHistory.fill(0); - for (auto& to : contHistory) + for (auto& to : continuationHistory) for (auto& h : to) - h.get()->fill(0); + h->fill(0); - contHistory[NO_PIECE][0].get()->fill(Search::CounterMovePruneThreshold - 1); + continuationHistory[NO_PIECE][0]->fill(Search::CounterMovePruneThreshold - 1); } /// Thread::start_searching() wakes up the thread that will start the search