X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fmovepick.h;h=37027ace23153d1dff36b88446df58d5b4be495d;hp=5fbaa688631f9e97864820e6254648179c0cbe08;hb=cbb1a8ed31679fe32d2694448a10b031390a32b3;hpb=77547a4ef149d3ac59177d4b1f2b4f807063baf6 diff --git a/src/movepick.h b/src/movepick.h index 5fbaa688..37027ace 100644 --- a/src/movepick.h +++ b/src/movepick.h @@ -21,7 +21,7 @@ #define MOVEPICK_H_INCLUDED #include // For std::max -#include // For memset +#include // For std::memset #include "movegen.h" #include "position.h" @@ -43,7 +43,7 @@ struct Stats { static const Value Max = Value(2000); const T* operator[](Piece p) const { return table[p]; } - void clear() { memset(table, 0, sizeof(table)); } + void clear() { std::memset(table, 0, sizeof(table)); } void update(Piece p, Square to, Move m) { @@ -97,6 +97,7 @@ private: const Position& pos; const HistoryStats& history; Search::Stack* ss; + Move* countermoves; Depth depth; Move ttMove; MoveStack killers[4];