mirror of
https://github.com/opelly27/Stockfish.git
synced 2026-05-20 08:37:44 +00:00
Fix uninitialized variable when searching from a terminal position.
This commit is contained in:
@@ -232,6 +232,9 @@ void ThreadPool::start_thinking(Position& pos, StateListPtr& states,
|
|||||||
th->rootMoves = rootMoves;
|
th->rootMoves = rootMoves;
|
||||||
th->rootPos.set(pos.fen(), pos.is_chess960(), &th->rootState, th);
|
th->rootPos.set(pos.fen(), pos.is_chess960(), &th->rootState, th);
|
||||||
th->rootState = setupStates->back();
|
th->rootState = setupStates->back();
|
||||||
|
// This is also set by rank_root_moves but we need to set it
|
||||||
|
// also when there is no legal moves.
|
||||||
|
th->rootInTB = false;
|
||||||
th->UseRule50 = bool(Options["Syzygy50MoveRule"]);
|
th->UseRule50 = bool(Options["Syzygy50MoveRule"]);
|
||||||
th->ProbeDepth = int(Options["SyzygyProbeDepth"]);
|
th->ProbeDepth = int(Options["SyzygyProbeDepth"]);
|
||||||
th->Cardinality = int(Options["SyzygyProbeLimit"]);
|
th->Cardinality = int(Options["SyzygyProbeLimit"]);
|
||||||
|
|||||||
Reference in New Issue
Block a user