1
0
Fork 0
mirror of https://github.com/sockspls/badfish synced 2025-04-29 16:23:09 +00:00

Explicitly initialize 'ready' flag

This commit is contained in:
Marco Costalba 2016-05-22 09:38:59 +02:00
parent 0610a13789
commit eb16759a48

View file

@ -383,6 +383,8 @@ WDLEntry::WDLEntry(const Position& pos, Key keys[])
{
memset(this, 0, sizeof(WDLEntry));
ready = false;
key = keys[WHITE];
key2 = keys[BLACK];
pieceCount = popcount(pos.pieces());