mirror of
https://github.com/opelly27/Stockfish.git
synced 2026-05-20 16:47:37 +00:00
Fix uninitialized ss->ply in data generator
This commit is contained in:
@@ -1978,6 +1978,9 @@ namespace Search
|
|||||||
for (int i = 7; i > 0; i--)
|
for (int i = 7; i > 0; i--)
|
||||||
(ss - i)->continuationHistory = &th->continuationHistory[0][0][NO_PIECE][0]; // Use as a sentinel
|
(ss - i)->continuationHistory = &th->continuationHistory[0][0][NO_PIECE][0]; // Use as a sentinel
|
||||||
|
|
||||||
|
for (int i = 0; i <= MAX_PLY + 2; ++i)
|
||||||
|
(ss + i)->ply = i;
|
||||||
|
|
||||||
// set rootMoves
|
// set rootMoves
|
||||||
auto& rootMoves = th->rootMoves;
|
auto& rootMoves = th->rootMoves;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user