X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fpawns.h;h=7d3e92522c83b0f668cdd6262e90190609e4a27f;hp=75136c6fe6c0ed3c75f9af1daabe8b934e6029a9;hb=225d89c51bb99c7163bc34ed00180dbd04f9bbec;hpb=8bef9e59a0f1f02a9377445243f538231c573c75 diff --git a/src/pawns.h b/src/pawns.h index 75136c6f..7d3e9252 100644 --- a/src/pawns.h +++ b/src/pawns.h @@ -121,9 +121,10 @@ inline bool PawnInfo::has_open_file_to_right(Color c, File f) const { 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; }