Fix uninitialized ss->ply in data generator

This commit is contained in:
Tomasz Sobczyk
2021-09-02 21:31:28 +02:00
parent 8fc7d9a4d4
commit f8d1315d90
+3
View File
@@ -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;