"Fix" warning when memsetting Position

This commit is contained in:
Tomasz Sobczyk
2020-09-11 12:22:03 +02:00
committed by nodchip
parent 96fa8fa8dc
commit 3c87d4fa9b

View File

@@ -192,6 +192,8 @@ public:
// PackedSfen does not include gamePly so it cannot be restored. If you want to set it, specify it with an argument.
int set_from_packed_sfen(const Learner::PackedSfen& sfen, StateInfo* si, Thread* th, bool mirror = false);
void clear() { std::memset(this, 0, sizeof(Position)); }
// Give the board, hand piece, and turn, and return the sfen.
//static std::string sfen_from_rawdata(Piece board[81], Hand hands[2], Color turn, int gamePly);