fix accumulator state initialization in set_from_packed_sfen

This commit is contained in:
Tomasz Sobczyk
2021-06-12 18:10:55 +02:00
parent aff5cf9ef7
commit cee4ed39bd
+2
View File
@@ -260,6 +260,8 @@ namespace Stockfish::Tools {
pos.clear(); pos.clear();
std::memset(si, 0, sizeof(StateInfo)); std::memset(si, 0, sizeof(StateInfo));
si->accumulator.state[WHITE] = Eval::NNUE::INIT;
si->accumulator.state[BLACK] = Eval::NNUE::INIT;
pos.st = si; pos.st = si;
// Active color // Active color