mirror of
https://github.com/HChaZZY/Stockfish.git
synced 2025-12-26 12:06:22 +08:00
fix accumulator state initialization in set_from_packed_sfen
This commit is contained in:
@@ -260,6 +260,8 @@ namespace Stockfish::Tools {
|
||||
|
||||
pos.clear();
|
||||
std::memset(si, 0, sizeof(StateInfo));
|
||||
si->accumulator.state[WHITE] = Eval::NNUE::INIT;
|
||||
si->accumulator.state[BLACK] = Eval::NNUE::INIT;
|
||||
pos.st = si;
|
||||
|
||||
// Active color
|
||||
|
||||
Reference in New Issue
Block a user