]> git.sesse.net Git - stockfish/blobdiff - src/movepick.h
Correct zero-init of Thread data members
[stockfish] / src / movepick.h
index 6fbd8be1387fc46ce277a03f29a1f2442171ac19..999ec9660d7450474232be18ee64e6970e8bf09f 100644 (file)
@@ -41,6 +41,7 @@ struct Stats {
 
   static const Value Max = Value(1 << 28);
 
+  Stats() { clear(); }
   const T* operator[](Piece pc) const { return table[pc]; }
   T* operator[](Piece pc) { return table[pc]; }
   void clear() { std::memset(table, 0, sizeof(table)); }