mirror of
https://github.com/sockspls/badfish
synced 2025-05-02 09:39:36 +00:00
Fix a serious bug in TranspositionTable::retrieve()
Reported by Tord Romstad. Signed-off-by: Marco Costalba <mcostalba@gmail.com>
This commit is contained in:
parent
046fd4926f
commit
ff0d9dad2b
1 changed files with 1 additions and 2 deletions
|
@ -144,9 +144,8 @@ const TTEntry* TranspositionTable::retrieve(const Position &pos) const {
|
||||||
|
|
||||||
TTEntry *tte = first_entry(pos);
|
TTEntry *tte = first_entry(pos);
|
||||||
|
|
||||||
for (int i = 0; i < 4; i++)
|
for (int i = 0; i < 4; i++, tte++)
|
||||||
{
|
{
|
||||||
tte += i;
|
|
||||||
if (tte->key() == pos.get_key())
|
if (tte->key() == pos.get_key())
|
||||||
return tte;
|
return tte;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue