mirror of
https://github.com/sockspls/badfish
synced 2025-04-30 08:43:09 +00:00
Zero init fromToStats in constructor. (#953)
Extend commit fe99de to fromToStats, which fixes the last valgrind errors on a simple 'go depth 12' at startup. No functional change.
This commit is contained in:
parent
8b2c81d3ea
commit
90b052462c
1 changed files with 1 additions and 0 deletions
|
@ -66,6 +66,7 @@ typedef Stats<CounterMoveStats> CounterMoveHistoryStats;
|
|||
|
||||
struct FromToStats {
|
||||
|
||||
FromToStats() { clear(); }
|
||||
Value get(Color c, Move m) const { return table[c][from_sq(m)][to_sq(m)]; }
|
||||
void clear() { std::memset(table, 0, sizeof(table)); }
|
||||
void update(Color c, Move m, Value v) {
|
||||
|
|
Loading…
Add table
Reference in a new issue