Skip to content

Commit

Permalink
Don't clear capture history
Browse files Browse the repository at this point in the history
  • Loading branch information
eduherminio committed Jan 31, 2024
1 parent 84b8e4b commit ceb6010
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions src/Lynx/Search/IDDFS.cs
Original file line number Diff line number Diff line change
Expand Up @@ -308,13 +308,7 @@ private int CheckPonderHit(ref SearchResult? lastSearchResult, int depth)
Array.Clear(_quietHistory[i]);
}

for (int i = 0; i < _captureHistory.Length; i++)
{
for (int j = 0; j < _captureHistory[i].Length; j++)
{
Array.Clear(_captureHistory[i][j]);
}
}
// Not clearing _captureHistory on purpose
}

return depth;
Expand Down

0 comments on commit ceb6010

Please sign in to comment.