X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=src%2Fthread.cpp;h=60f760ed46ee48bf70b0157773d668b6a5793cfa;hb=b25d68f6ee2d016cc0c14b076e79e6c44fdaea2a;hp=9cf85310c39c96a49cc0b752fe874c7a83b99111;hpb=adf29b3fd69cdca035d1aa6675e01acafbf4d07f;p=stockfish diff --git a/src/thread.cpp b/src/thread.cpp index 9cf85310..60f760ed 100644 --- a/src/thread.cpp +++ b/src/thread.cpp @@ -27,6 +27,7 @@ #include #include +#include "evaluate.h" #include "misc.h" #include "movegen.h" #include "search.h" @@ -212,6 +213,7 @@ void ThreadPool::start_thinking(Position& pos, StateListPtr& states, th->rootMoves = rootMoves; th->rootPos.set(pos.fen(), pos.is_chess960(), &th->rootState, th); th->rootState = setupStates->back(); + th->rootSimpleEval = Eval::simple_eval(pos, pos.side_to_move()); } main()->start_searching();