X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fmovepick.h;h=44fc51f6263d73ca5a88919ff044e3e6b256cc12;hp=423a6a1805e34a233844024940bd8d66839fb74b;hb=2e86d1febc163e076320a6a21060fc5a1c7c0dff;hpb=946fa4762539307dcdcb30d08f13d627864e9bcf diff --git a/src/movepick.h b/src/movepick.h index 423a6a18..44fc51f6 100644 --- a/src/movepick.h +++ b/src/movepick.h @@ -21,6 +21,7 @@ #define MOVEPICK_H_INCLUDED #include // For std::max +#include // For std::memset #include "movegen.h" #include "position.h" @@ -43,6 +44,7 @@ struct Stats { const T* operator[](Piece pc) const { return table[pc]; } T* operator[](Piece pc) { return table[pc]; } + void clear() { std::memset(table, 0, sizeof(table)); } void update(Piece pc, Square to, Move m) {