1
0
Fork 0
mirror of https://github.com/sockspls/badfish synced 2025-07-11 19:49:14 +00:00

Restore back DTZ_list size limit

We will remove it when we will have
a better understanding of the code base,
for now just stick to the original
functionality.
This commit is contained in:
Marco Costalba 2016-04-25 09:01:33 +02:00
parent 4119955044
commit 10b11da913

View file

@ -1511,6 +1511,16 @@ int probe_dtz_table(const Position& pos, int wdl, int *success)
dtz.entry = entry;
DTZ_list.push_front(dtz);
// Keep list size within 64 entries
// FIXME remove it when we will know what we are doing
if (DTZ_list.size() > 64)
{
if (DTZ_list.back().entry)
free_dtz_entry(DTZ_list.back());
DTZ_list.pop_back();
}
}
}