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:
parent
4119955044
commit
10b11da913
1 changed files with 10 additions and 0 deletions
|
@ -1511,6 +1511,16 @@ int probe_dtz_table(const Position& pos, int wdl, int *success)
|
||||||
dtz.entry = entry;
|
dtz.entry = entry;
|
||||||
|
|
||||||
DTZ_list.push_front(dtz);
|
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();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue