Go back to original direct assignment, this allows to
add an include in pawns.h to teach about memset()
This fix a compile error under Ubuntu.
Signed-off-by: Marco Costalba <mcostalba@gmail.com>
inline void PawnInfo::clear() {
- Key k = key;
- memset(this, 0, sizeof(PawnInfo));
- key = k;
+ passedPawns = EmptyBoardBB;
+ mgValue = egValue = 0;
+ ksStormValue[WHITE] = ksStormValue[BLACK] = 0;
+ qsStormValue[WHITE] = qsStormValue[BLACK] = 0;
halfOpenFiles[WHITE] = halfOpenFiles[BLACK] = 0xFF;
}